Class ChannelsUnreadCountParams

  • All Implemented Interfaces:

    
    public final class ChannelsUnreadCountParams
    
                        

    Parameters for querying unread message count by channel type and notification level. Controls whether to include unread message counts from do-not-disturb channels via the levels list.

    Usage example:

    // get unread count for private and group chats with ALL or DEFAULT notification level (excluding DND)
    val params = ChannelsUnreadCountParams(
        channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP),
        levels = listOf(NotificationLevel.ALL, NotificationLevel.DEFAULT)
    )
    BaseChannel.getChannelsUnreadCount(params) { count, error ->
        // ...
    }
    
    // get unread count for all notification levels (including do-not-disturb)
    val params2 = ChannelsUnreadCountParams(
        channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP),
        levels = emptyList()
    )