ChannelUserRead

data class ChannelUserRead(    var user: User,     var lastRead: Date? = null,     var unreadMessages: Int = 0,     var lastMessageSeenDate: Date? = null) : UserEntity

Information about how many messages are unread in the channel by a given user.

Constructors

Link copied to clipboard
fun ChannelUserRead(    user: User,     lastRead: Date? = null,     unreadMessages: Int = 0,     lastMessageSeenDate: Date? = null)

Properties

Link copied to clipboard
var lastMessageSeenDate: Date? = null

The time of the last message that the SDK is aware of. If new messages arrive with the createdAt newer than this one, that means that the count of unread messages should be incremented.

Link copied to clipboard
var lastRead: Date? = null

The time of the last read message.

Link copied to clipboard
var unreadMessages: Int = 0

How many messages are unread.

Link copied to clipboard
open override var user: User

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

Inherited functions

Link copied to clipboard
open fun getUserId(): String