Body

data class Body(val name: String, val type: ChannelType, val subType: ChannelSubType, val position: Int, val parentId: String, val privateType: PrivateType, val privateUserIds: List<String>, val speakPermission: SpeakPermission, val applicationId: String? = null)(source)

CreateChannelApi 的请求体。

Constructors

Link copied to clipboard
constructor(name: String, type: ChannelType, subType: ChannelSubType, position: Int, parentId: String, privateType: PrivateType, privateUserIds: List<String>, speakPermission: SpeakPermission, applicationId: String? = null)

Types

Link copied to clipboard
class Builder

Builder for Body.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "application_id")
val applicationId: String? = null

应用类型子频道应用 AppID,仅应用子频道需要该字段

Link copied to clipboard

子频道名称

Link copied to clipboard
@SerialName(value = "parent_id")
val parentId: String

子频道所属分组ID

Link copied to clipboard

子频道排序,必填;当子频道类型为 子频道分组(ChannelType=4) 时,必须大于等于 2

Link copied to clipboard
@SerialName(value = "private_type")
val privateType: PrivateType

子频道私密类型 PrivateType

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

子频道私密类型成员 ID

Link copied to clipboard
@SerialName(value = "speak_permission")
val speakPermission: SpeakPermission

子频道发言权限 SpeakPermission

Link copied to clipboard
@SerialName(value = "sub_type")
val subType: ChannelSubType

子频道子类型 ChannelSubType

Link copied to clipboard

子频道类型 ChannelType