Interface HasUnreadCounts

  • All Implemented Interfaces:

    
    public interface HasUnreadCounts
    
                        

    Interface that marks a ChatEvent as having the information about unread counts. There are certain cases when the server omits these fields (e.g. when ReadEvents option is disabled, when the number of watchers is over 100, etc). In that case totalUnreadCount and unreadChannels fields have 0 values.

    The list of events which contain unread counts:

    • message.new

    • notification.message_new

    • notification.mark_read

    • notification.mark_unread

    • notification.added_to_channel

    • notification.channel_deleted

    • notification.channel_truncated

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Integer getTotalUnreadCount()
      abstract Integer getUnreadChannels()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait