-
public interface HasUnreadCountsInterface that marks a ChatEvent as having the information about unread counts. There are certain cases when the server omits these fields (e.g. when
ReadEventsoption is disabled, when the number of watchers is over 100, etc). In that casetotalUnreadCountandunreadChannelsfields 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 IntegergetTotalUnreadCount()abstract IntegergetUnreadChannels()-
-
Method Detail
-
getTotalUnreadCount
abstract Integer getTotalUnreadCount()
-
getUnreadChannels
abstract Integer getUnreadChannels()
-
-
-
-