Package ai.nexconn.chat.params
Class SearchJoinedGroupsQueryParams
-
- All Implemented Interfaces:
public final class SearchJoinedGroupsQueryParamsPagination query parameters for searching joined groups.
Used by ai.nexconn.chat.channel.GroupChannel.createSearchJoinedGroupsQuery to create a pagination query object.
Usage example:
val params = SearchJoinedGroupsQueryParams(groupName = "Tech Discussion") val query = GroupChannel.createSearchJoinedGroupsQuery(params) query.loadNextPage { list, error -> ... }
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerpageSizeprivate BooleanisAscendingprivate final StringgroupName
-
Constructor Summary
Constructors Constructor Description SearchJoinedGroupsQueryParams(String groupName)
-
Method Summary
Modifier and Type Method Description final IntegergetPageSize()Number of items per page. final UnitsetPageSize(Integer pageSize)Number of items per page. final BooleanisAscending()Whether to sort in ascending order. final UnitsetAscending(Boolean isAscending)Whether to sort in ascending order. final StringgetGroupName()-
-
Method Detail
-
getPageSize
final Integer getPageSize()
Number of items per page. Defaults to 20, maximum 200
-
setPageSize
final Unit setPageSize(Integer pageSize)
Number of items per page. Defaults to 20, maximum 200
-
isAscending
final Boolean isAscending()
Whether to sort in ascending order. true: ascending; false: descending (default)
-
setAscending
final Unit setAscending(Boolean isAscending)
Whether to sort in ascending order. true: ascending; false: descending (default)
-
getGroupName
final String getGroupName()
-
-
-
-