Package ai.nexconn.chat.params
Class SubscribeQueryParams
-
- All Implemented Interfaces:
public final class SubscribeQueryParamsSubscription event pagination query parameters.
Used with ai.nexconn.chat.user.UserModule.createSubscribeQuery to create a pagination query object. All parameters are immutable after creation to ensure consistency during the query process.
Usage Example:
val params = SubscribeQueryParams( subscribeType = SubscribeType.ONLINE_STATUS, pageSize = 50 ) val query = NCEngine.user.createSubscribeQuery(params) query.loadNextPage { list, error -> ... }
-
-
Field Summary
Fields Modifier and Type Field Description private final SubscribeTypesubscribeTypeprivate final IntegerpageSize
-
Constructor Summary
Constructors Constructor Description SubscribeQueryParams(SubscribeType subscribeType, Integer pageSize)
-
Method Summary
Modifier and Type Method Description final SubscribeTypegetSubscribeType()final IntegergetPageSize()StringtoString()-
-
Constructor Detail
-
SubscribeQueryParams
SubscribeQueryParams(SubscribeType subscribeType, Integer pageSize)
- Parameters:
subscribeType- Subscription event type to query.pageSize- Number of items per page.
-
-
Method Detail
-
getSubscribeType
final SubscribeType getSubscribeType()
-
getPageSize
final Integer getPageSize()
-
toString
String toString()
-
-
-
-