Package 

Class ChannelUserRead

  • All Implemented Interfaces:
    io.getstream.chat.android.models.UserEntity

    
    public final class ChannelUserRead
     implements UserEntity
                        

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      User getUser() The user which has read some of the messages and may have some unread messages.
      Unit setUser(User user) The user which has read some of the messages and may have some unread messages.
      final Date getLastRead() The time of the last read message.
      final Unit setLastRead(Date lastRead) The time of the last read message.
      final Integer getUnreadMessages() How many messages are unread.
      final Unit setUnreadMessages(Integer unreadMessages) How many messages are unread.
      final Date getLastMessageSeenDate() The time of the last message that the SDK is aware of.
      final Unit setLastMessageSeenDate(Date lastMessageSeenDate) The time of the last message that the SDK is aware of.
      • Methods inherited from class io.getstream.chat.android.models.UserEntity

        getUserId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChannelUserRead

        ChannelUserRead(User user, Date lastRead, Integer unreadMessages, Date lastMessageSeenDate)
    • 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.

      • 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.