Package 

Interface HasUnreadCounts


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

    • notification.channel_deleted

    • notification.channel_truncated

    • 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