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.

    • 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.
      final Date getLastRead() The time of the last read message.
      final Integer getUnreadMessages() How many messages are unread.
      final Date getLastMessageSeenDate() 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.

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