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) : UserEntity, 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)

Properties

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
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 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 getUserId(): String