Package io.getstream.chat.android.models
Class ChannelUserRead
-
- All Implemented Interfaces:
-
io.getstream.chat.android.models.UserEntity
@Immutable() public final class ChannelUserRead implements 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.
-
-
Field Summary
Fields Modifier and Type Field Description private final Useruserprivate final DatelastReceivedEventDateprivate final IntegerunreadMessagesprivate final DatelastReadprivate final StringlastReadMessageIdprivate final DatelastDeliveredAtprivate final StringlastDeliveredMessageId
-
Method Summary
Modifier and Type Method Description UsergetUser()The user which has read some of the messages and may have some unread messages. final DategetLastReceivedEventDate()The time of the event that updated this ChannelUserRead object. final IntegergetUnreadMessages()How many messages are unread. final DategetLastRead()The time of the last read message. final StringgetLastReadMessageId()The ID of the last read message. final DategetLastDeliveredAt()The time of the last delivered message. final StringgetLastDeliveredMessageId()The ID of the last delivered message. -
-
Method Detail
-
getUser
User getUser()
The user which has read some of the messages and may have some unread messages.
-
getLastReceivedEventDate
final Date getLastReceivedEventDate()
The time of the event that updated this ChannelUserRead object.
-
getUnreadMessages
final Integer getUnreadMessages()
How many messages are unread.
-
getLastRead
final Date getLastRead()
The time of the last read message.
-
getLastReadMessageId
final String getLastReadMessageId()
The ID of the last read message.
-
getLastDeliveredAt
final Date getLastDeliveredAt()
The time of the last delivered message.
-
getLastDeliveredMessageId
final String getLastDeliveredMessageId()
The ID of the last delivered message.
-
-
-
-