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

The date when this channel was archived.

Link copied to clipboard

The date the ban expires.

Link copied to clipboard

If channel member is banned.

Link copied to clipboard

The user's channel-level role.

Link copied to clipboard

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

The date the invite was accepted.

Link copied to clipboard

The date the invite was rejected.

Link copied to clipboard

If the user is invited.

Link copied to clipboard

If notifications are muted for the user in the channel.

Link copied to clipboard

The date when this channel was pinned.

Link copied to clipboard

If channel member is shadow banned.

Link copied to clipboard

The status of the user in the channel.

Link copied to clipboard

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.

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

Returns the value associated with the given key, or default if the key is not present in the extraData.

Link copied to clipboard
open fun getUserId(): String

Returns the user ID.