Package ai.nexconn.chat.channel.query
Class UnreadMentionMeChannelsQuery
-
- All Implemented Interfaces:
-
ai.nexconn.chat.internal.query.PageableQuery
public final class UnreadMentionMeChannelsQuery implements PageableQuery<PageData<BaseChannel>>
Paginated query for channels that contain unread @me messages.
Implements the PageableQuery interface to provide paginated loading of channels that have unread messages mentioning the current user. Create an instance via BaseChannel.createUnreadMentionMeChannelsQuery.
Usage example:
val query = BaseChannel.createUnreadMentionMeChannelsQuery( UnreadMentionMeChannelsParams( channelTypes = listOf(ChannelType.GROUP, ChannelType.COMMUNITY) ) ) // Load first page query.loadNextPage { list, error -> if (error == null && list != null) { // Handle data } }
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisLoading
-
Method Summary
Modifier and Type Method Description BooleanisLoading()UnitloadNextPage(OperationHandler<PageData<BaseChannel>> handler)-
-
Method Detail
-
isLoading
Boolean isLoading()
-
loadNextPage
Unit loadNextPage(OperationHandler<PageData<BaseChannel>> handler)
-
-
-
-