UserBannedEvent

data class UserBannedEvent(@Json(name = "created_at") val createdAt: OffsetDateTime, @Json(name = "custom") val custom: Map<String, Any?> = emptyMap(), @Json(name = "user") val user: UserResponseCommonFields, @Json(name = "type") val type: String, @Json(name = "channel_id") val channelId: String? = null, @Json(name = "channel_member_count") val channelMemberCount: Int? = null, @Json(name = "channel_message_count") val channelMessageCount: Int? = null, @Json(name = "channel_type") val channelType: String? = null, @Json(name = "cid") val cid: String? = null, @Json(name = "expiration") val expiration: OffsetDateTime? = null, @Json(name = "reason") val reason: String? = null, @Json(name = "received_at") val receivedAt: OffsetDateTime? = null, @Json(name = "shadow") val shadow: Boolean? = null, @Json(name = "team") val team: String? = null, @Json(name = "total_bans") val totalBans: Int? = null, @Json(name = "channel_custom") val channelCustom: Map<String, Any?>? = emptyMap(), @Json(name = "created_by") val createdBy: UserResponseCommonFields? = null) : VideoEvent

This event is sent when a user gets banned. The event contains information about the user that was banned.

Constructors

Link copied to clipboard
constructor(@Json(name = "created_at") createdAt: OffsetDateTime, @Json(name = "custom") custom: Map<String, Any?> = emptyMap(), @Json(name = "user") user: UserResponseCommonFields, @Json(name = "type") type: String, @Json(name = "channel_id") channelId: String? = null, @Json(name = "channel_member_count") channelMemberCount: Int? = null, @Json(name = "channel_message_count") channelMessageCount: Int? = null, @Json(name = "channel_type") channelType: String? = null, @Json(name = "cid") cid: String? = null, @Json(name = "expiration") expiration: OffsetDateTime? = null, @Json(name = "reason") reason: String? = null, @Json(name = "received_at") receivedAt: OffsetDateTime? = null, @Json(name = "shadow") shadow: Boolean? = null, @Json(name = "team") team: String? = null, @Json(name = "total_bans") totalBans: Int? = null, @Json(name = "channel_custom") channelCustom: Map<String, Any?>? = emptyMap(), @Json(name = "created_by") createdBy: UserResponseCommonFields? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val cid: String?
Link copied to clipboard
val createdAt: OffsetDateTime
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val expiration: OffsetDateTime?
Link copied to clipboard
Link copied to clipboard
val receivedAt: OffsetDateTime?
Link copied to clipboard
Link copied to clipboard
val team: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getEventType(): String