Package ai.nexconn.chat.user.query
Class SubscribeQuery
-
- All Implemented Interfaces:
-
ai.nexconn.chat.internal.query.PageableQuery
public final class SubscribeQuery implements PageableQuery<PageData<SubscriptionStatusInfo>>
Subscription event pagination query object.
Implements PageableQuery Interface, Provides Pagination load Subscription event info capability. See SendBird Query mode, Via loadNextPage Load data page by page, Via hasMore Check if there is more data.
Via UserModule.createSubscribeQuery Create instance, Not cannot be constructed directly.
Usage Example:
val params = SubscribeQueryParams(SubscribeType.ONLINE_STATUS).apply { pageSize = 50 } val query = NCEngine.user.createSubscribeQuery(params) // 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<SubscriptionStatusInfo>> handler)-
-
Method Detail
-
isLoading
Boolean isLoading()
-
loadNextPage
Unit loadNextPage(OperationHandler<PageData<SubscriptionStatusInfo>> handler)
-
-
-
-