Package-level declarations

Types

Link copied to clipboard
data class Category @ApiResultType constructor(val id: String, val name: String, val allow: Int = 0, val deny: Int = 0, val roles: List<CategoryRole> = emptyList())

帖子分区详情。

Link copied to clipboard
data class CategoryRole @ApiResultType constructor(val type: String, val roleId: Long, val userId: String, val allow: Int)

分区权限角色详情。

Link copied to clipboard
data class Post @ApiResultType constructor(val id: String, val categoryId: String? = null, val threadId: String, val replyId: String, val belongToPostId: String, val content: String, val status: Int? = null, val mention: List<String> = emptyList(), val mentionAll: Boolean = false, val mentionHere: Boolean = false, val mentionPart: List<String> = emptyList(), val mentionRolePart: List<String> = emptyList(), val channelPart: List<String> = emptyList(), val itemPart: List<String> = emptyList(), val createTime: Long? = null, val isUpdated: Boolean? = null, val user: User? = null, val replies: List<Post> = emptyList())

帖子回复/评论详情。

Link copied to clipboard

排序方式枚举。

Link copied to clipboard
Link copied to clipboard
data class Thread @ApiResultType constructor(val id: String, val status: Int, val title: String, val cover: String, val category: String)

帖子详情。

Link copied to clipboard
data class ThreadListData @ApiResultType constructor(val items: List<ThreadView>)

GetThreadListApi 的响应结果。

Link copied to clipboard
data class ThreadMedia @ApiResultType constructor(val type: Int, val src: String, val title: String)

帖子媒体附件。

Link copied to clipboard

排序规则枚举。

Link copied to clipboard
data class ThreadTag @ApiResultType constructor(val id: Long, val name: String, val icon: String)

帖子标签。

Link copied to clipboard
data class ThreadView @ApiResultType constructor(val id: String, val status: Int, val title: String, val cover: String, val postId: String, val medias: List<ThreadMedia> = emptyList(), val previewContent: String, val user: SimpleUser, val category: Category, val tags: List<ThreadTag> = emptyList(), val content: String, val mention: List<String> = emptyList(), val mentionAll: Boolean, val mentionHere: Boolean, val mentionPart: List<String> = emptyList(), val mentionRolePart: List<String> = emptyList(), val channelPart: List<String> = emptyList(), val itemPart: List<String> = emptyList(), val latestActiveTime: Long? = null, val createTime: Long? = null, val isUpdated: Boolean? = null, val contentDeleted: Boolean? = null, val contentDeletedType: Int? = null, val collectNum: Int? = null, val postCount: Int? = null)

帖子的完整信息,包含主楼信息和扩展字段。

Inherited functions

Link copied to clipboard
inline fun GetThreadListApi.Factory.createFlow(channelId: String, categoryId: String? = null, sort: Int? = null, pageSize: Int? = null, crossinline block: suspend GetThreadListApi.Factory.(time: Long?) -> ThreadListData): Flow<ThreadListData>

批次量的通过 GetThreadListApi 查询所有结果。

inline fun GetThreadPostApi.Factory.createFlow(channelId: String, threadId: String, order: String, postId: String? = null, time: String? = null, pageSize: String? = null, crossinline block: suspend GetThreadPostApi.Factory.(page: String) -> ListData<Post>): Flow<ListData<Post>>

批次量的通过 GetThreadPostApi 查询所有结果直至最后一次响应的页码达到最大值。

Link copied to clipboard
inline fun GetThreadListApi.Factory.createItemFlow(channelId: String, categoryId: String? = null, sort: Int? = null, pageSize: Int? = null, crossinline block: suspend GetThreadListApi.Factory.(time: Long?) -> ThreadListData): Flow<ThreadView>

批次量的通过 GetThreadListApi 查询所有结果,返回单个帖子的流。

inline fun GetThreadPostApi.Factory.createItemFlow(channelId: String, threadId: String, order: String, postId: String? = null, time: String? = null, pageSize: String? = null, crossinline block: suspend GetThreadPostApi.Factory.(page: String) -> ListData<Post>): Flow<Post>

批次量的通过 GetThreadPostApi 查询所有结果,返回单个回复的流。