Package io.getstream.chat.android.models
Class ChannelUserRead
-
- All Implemented Interfaces:
-
io.getstream.chat.android.models.UserEntity
@Immutable() public final class ChannelUserRead implements UserEntity
Information about how many messages are unread in the channel by a given user.
-
-
Field Summary
Fields Modifier and Type Field Description private final Useruserprivate final DatelastReadprivate final IntegerunreadMessagesprivate final DatelastMessageSeenDate
-
Constructor Summary
Constructors Constructor Description ChannelUserRead(User user, Date lastRead, Integer unreadMessages, Date lastMessageSeenDate)
-
Method Summary
Modifier and Type Method Description UsergetUser()The user which has read some of the messages and may have some unread messages. final DategetLastRead()The time of the last read message. final IntegergetUnreadMessages()How many messages are unread. final DategetLastMessageSeenDate()The time of the last message that the SDK is aware of. -
-
Method Detail
-
getUser
User getUser()
The user which has read some of the messages and may have some unread messages.
-
getLastRead
final Date getLastRead()
The time of the last read message.
-
getUnreadMessages
final Integer getUnreadMessages()
How many messages are unread.
-
getLastMessageSeenDate
final Date getLastMessageSeenDate()
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.
-
-
-
-