Member

@Immutable
data class Member(val user: User, val createdAt: Date? = null, val updatedAt: Date? = null, val isInvited: Boolean? = null, val inviteAcceptedAt: Date? = null, val inviteRejectedAt: Date? = null, val shadowBanned: Boolean = false, val banned: Boolean = false, val channelRole: String? = null, val notificationsMuted: Boolean? = null, val status: String? = null, val banExpires: Date? = null, val pinnedAt: Date? = null, val archivedAt: Date? = null, val extraData: Map<String, Any> = emptyMap()) : UserEntity, CustomObject, ComparableFieldProvider

Represents a channel member.

Constructors

Link copied to clipboard
constructor(user: User, createdAt: Date? = null, updatedAt: Date? = null, isInvited: Boolean? = null, inviteAcceptedAt: Date? = null, inviteRejectedAt: Date? = null, shadowBanned: Boolean = false, banned: Boolean = false, channelRole: String? = null, notificationsMuted: Boolean? = null, status: String? = null, banExpires: Date? = null, pinnedAt: Date? = null, archivedAt: Date? = null, extraData: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
val archivedAt: Date? = null

The date when this channel was archived.

Link copied to clipboard
val banExpires: Date? = null

The date the ban expires.

Link copied to clipboard
val banned: Boolean = false

If channel member is banned.

Link copied to clipboard
val channelRole: String? = null

The user's channel-level role.

Link copied to clipboard
val createdAt: Date? = null

When the user became a member.

Link copied to clipboard
open override val extraData: Map<String, Any>

A map of custom fields for the member.

Link copied to clipboard
val inviteAcceptedAt: Date? = null

The date the invite was accepted.

Link copied to clipboard
val inviteRejectedAt: Date? = null

The date the invite was rejected.

Link copied to clipboard
val isInvited: Boolean? = null

If the user is invited.

Link copied to clipboard

If notifications are muted for the user in the channel.

Link copied to clipboard
val pinnedAt: Date? = null

The date when this channel was pinned.

Link copied to clipboard
val shadowBanned: Boolean = false

If channel member is shadow banned.

Link copied to clipboard
val status: String? = null

The status of the user in the channel.

Link copied to clipboard
val updatedAt: Date? = null

When the membership data was last updated.

Link copied to clipboard
open override val user: User

The user who is a member of the channel.

Functions

Link copied to clipboard
open override fun getComparableField(fieldName: String): Comparable<*>?

Gets a comparable fields from a name.

Inherited functions

Link copied to clipboard
open fun <T> getExtraValue(key: String, default: T): T
Link copied to clipboard
open fun getUserId(): String