-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.models.UserEntity
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 Useruserprivate DatelastReadprivate IntegerunreadMessagesprivate 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. UnitsetUser(User user)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 UnitsetLastRead(Date lastRead)The time of the last read message. final IntegergetUnreadMessages()How many messages are unread. final UnitsetUnreadMessages(Integer unreadMessages)How many messages are unread. final DategetLastMessageSeenDate()The time of the last message that the SDK is aware of. final UnitsetLastMessageSeenDate(Date lastMessageSeenDate)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.
-
setUser
Unit setUser(User user)
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.
-
setLastRead
final Unit setLastRead(Date lastRead)
The time of the last read message.
-
getUnreadMessages
final Integer getUnreadMessages()
How many messages are unread.
-
setUnreadMessages
final Unit setUnreadMessages(Integer unreadMessages)
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.
-
setLastMessageSeenDate
final Unit setLastMessageSeenDate(Date lastMessageSeenDate)
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.
-
-
-
-