ChannelResponse

data class ChannelResponse(@Json(name = "cid") val cid: String, @Json(name = "created_at") val createdAt: OffsetDateTime, @Json(name = "custom") val custom: Map<String, Any?>, @Json(name = "disabled") val disabled: Boolean, @Json(name = "frozen") val frozen: Boolean, @Json(name = "id") val id: String, @Json(name = "type") val type: String, @Json(name = "updated_at") val updatedAt: OffsetDateTime, @Json(name = "auto_translation_enabled") val autoTranslationEnabled: Boolean? = null, @Json(name = "auto_translation_language") val autoTranslationLanguage: String? = null, @Json(name = "blocked") val blocked: Boolean? = null, @Json(name = "config") val config: ChannelConfigWithInfo? = null, @Json(name = "cooldown") val cooldown: Int? = null, @Json(name = "created_by") val createdBy: UserObject? = null, @Json(name = "deleted_at") val deletedAt: OffsetDateTime? = null, @Json(name = "hidden") val hidden: Boolean? = null, @Json(name = "hide_messages_before") val hideMessagesBefore: OffsetDateTime? = null, @Json(name = "last_message_at") val lastMessageAt: OffsetDateTime? = null, @Json(name = "member_count") val memberCount: Int? = null, @Json(name = "members") val members: List<ChannelMember>? = null, @Json(name = "mute_expires_at") val muteExpiresAt: OffsetDateTime? = null, @Json(name = "muted") val muted: Boolean? = null, @Json(name = "own_capabilities") val ownCapabilities: List<String>? = null, @Json(name = "team") val team: String? = null, @Json(name = "truncated_at") val truncatedAt: OffsetDateTime? = null, @Json(name = "truncated_by") val truncatedBy: UserObject? = null)

Represents channel in chat

Parameters

cid

Channel CID (:)

createdAt

Date/time of creation

custom
disabled
frozen

Whether channel is frozen or not

id

Channel unique ID

type

Type of the channel

updatedAt

Date/time of the last update

autoTranslationEnabled

Whether auto translation is enabled or not

autoTranslationLanguage

Language to translate to when auto translation is active

blocked

Whether this channel is blocked by current user or not

config
cooldown

Cooldown period after sending each message

createdBy
deletedAt

Date/time of deletion

hidden

Whether this channel is hidden by current user or not

hideMessagesBefore

Date since when the message history is accessible

lastMessageAt

Date of the last message sent

memberCount

Number of members in the channel

members

List of channel members (max 100)

muteExpiresAt

Date of mute expiration

muted

Whether this channel is muted or not

ownCapabilities

List of channel capabilities of authenticated user

team

Team the channel belongs to (multi-tenant only)

truncatedAt

Date of the latest truncation of the channel

truncatedBy

Constructors

Link copied to clipboard
constructor(@Json(name = "cid") cid: String, @Json(name = "created_at") createdAt: OffsetDateTime, @Json(name = "custom") custom: Map<String, Any?>, @Json(name = "disabled") disabled: Boolean, @Json(name = "frozen") frozen: Boolean, @Json(name = "id") id: String, @Json(name = "type") type: String, @Json(name = "updated_at") updatedAt: OffsetDateTime, @Json(name = "auto_translation_enabled") autoTranslationEnabled: Boolean? = null, @Json(name = "auto_translation_language") autoTranslationLanguage: String? = null, @Json(name = "blocked") blocked: Boolean? = null, @Json(name = "config") config: ChannelConfigWithInfo? = null, @Json(name = "cooldown") cooldown: Int? = null, @Json(name = "created_by") createdBy: UserObject? = null, @Json(name = "deleted_at") deletedAt: OffsetDateTime? = null, @Json(name = "hidden") hidden: Boolean? = null, @Json(name = "hide_messages_before") hideMessagesBefore: OffsetDateTime? = null, @Json(name = "last_message_at") lastMessageAt: OffsetDateTime? = null, @Json(name = "member_count") memberCount: Int? = null, @Json(name = "members") members: List<ChannelMember>? = null, @Json(name = "mute_expires_at") muteExpiresAt: OffsetDateTime? = null, @Json(name = "muted") muted: Boolean? = null, @Json(name = "own_capabilities") ownCapabilities: List<String>? = null, @Json(name = "team") team: String? = null, @Json(name = "truncated_at") truncatedAt: OffsetDateTime? = null, @Json(name = "truncated_by") truncatedBy: UserObject? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val blocked: Boolean? = null
Link copied to clipboard
val cid: String
Link copied to clipboard
Link copied to clipboard
val cooldown: Int? = null
Link copied to clipboard
val createdAt: OffsetDateTime
Link copied to clipboard
val createdBy: UserObject? = null
Link copied to clipboard
Link copied to clipboard
val deletedAt: OffsetDateTime? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val hidden: Boolean? = null
Link copied to clipboard
val hideMessagesBefore: OffsetDateTime? = null
Link copied to clipboard
val id: String
Link copied to clipboard
val lastMessageAt: OffsetDateTime? = null
Link copied to clipboard
val memberCount: Int? = null
Link copied to clipboard
val members: List<ChannelMember>? = null
Link copied to clipboard
val muted: Boolean? = null
Link copied to clipboard
val muteExpiresAt: OffsetDateTime? = null
Link copied to clipboard
Link copied to clipboard
val team: String? = null
Link copied to clipboard
val truncatedAt: OffsetDateTime? = null
Link copied to clipboard
val truncatedBy: UserObject? = null
Link copied to clipboard
Link copied to clipboard
val updatedAt: OffsetDateTime