ChannelUserRead

@Immutable
data class ChannelUserRead(val user: User, val lastReceivedEventDate: Date, val unreadMessages: Int, val lastRead: Date, val lastReadMessageId: String?, val lastDeliveredAt: Date? = null, val lastDeliveredMessageId: String? = null) : UserEntity

Represents a user's last read and delivered status in a channel. Contains information about how many messages have not been read, the last read information, and the last delivered information.

Constructors

Link copied to clipboard
constructor(user: User, lastReceivedEventDate: Date, unreadMessages: Int, lastRead: Date, lastReadMessageId: String?, lastDeliveredAt: Date? = null, lastDeliveredMessageId: String? = null)

Properties

Link copied to clipboard
val lastDeliveredAt: Date? = null

The time of the last delivered message.

Link copied to clipboard

The ID of the last delivered message.

Link copied to clipboard

The time of the last read message.

Link copied to clipboard

The ID of the last read message.

Link copied to clipboard

The time of the event that updated this ChannelUserRead object.

Link copied to clipboard

How many messages are unread.

Link copied to clipboard
open override val user: User

The user which has read some of the messages and may have some unread messages.

Functions

Link copied to clipboard
open fun getUserId(): String

Returns the user ID.