ThreadView

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)(source)

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

Since

4.3.0

Author

Forte

Constructors

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

Properties

Link copied to clipboard

分区字段

Link copied to clipboard
@SerialName(value = "channel_part")
val channelPart: List<String>

频道详情

Link copied to clipboard
@SerialName(value = "collect_num")
val collectNum: Int? = null

收藏数量

Link copied to clipboard

卡片消息内容

Link copied to clipboard
@SerialName(value = "content_deleted")
val contentDeleted: Boolean? = null

内容是否被删除

Link copied to clipboard
@SerialName(value = "content_deleted_type")
val contentDeletedType: Int? = null

删除类型:1作者自己删除 2管理员删除 3审核删除

Link copied to clipboard

封面url

Link copied to clipboard
@SerialName(value = "create_time")
val createTime: Long? = null

创建时间

Link copied to clipboard
val id: String

帖子 id

Link copied to clipboard
@SerialName(value = "is_updated")
val isUpdated: Boolean? = null

是否被编辑过

Link copied to clipboard
@SerialName(value = "item_part")
val itemPart: List<String>

物品详情

Link copied to clipboard
@SerialName(value = "latest_active_time")
val latestActiveTime: Long? = null

最后活跃时间

Link copied to clipboard

卡片消息附加图片数组

Link copied to clipboard

@特定用户 的用户 ID 数组

Link copied to clipboard
@SerialName(value = "mention_all")
val mentionAll: Boolean

是否含有 @全体人员

Link copied to clipboard
@SerialName(value = "mention_here")
val mentionHere: Boolean

是否含有 @在线人员

Link copied to clipboard
@SerialName(value = "mention_part")
val mentionPart: List<String>

@特定用户 详情

Link copied to clipboard
@SerialName(value = "mention_role_part")
val mentionRolePart: List<String>

@特定角色 详情

Link copied to clipboard
@SerialName(value = "post_count")
val postCount: Int? = null

回复总数

Link copied to clipboard
@SerialName(value = "post_id")
val postId: String

主楼id

Link copied to clipboard
@SerialName(value = "preview_content")
val previewContent: String

预览文本

Link copied to clipboard
val status: Int

帖子状态, 1代表审核中,2代表审核通过, 3代表编辑审核中

Link copied to clipboard

话题数组

Link copied to clipboard

标题

Link copied to clipboard

创建帖子用户数据