Class SearchJoinedGroupsQuery

  • All Implemented Interfaces:
    ai.nexconn.chat.internal.query.PageableQuery

    
    public final class SearchJoinedGroupsQuery
     implements PageableQuery<PageResult<GroupInfo>>
                        

    Pagination query for searching joined groups.

    Implements PageableQuery to provide paginated searching of joined groups. Following the SendBird query pattern, use loadNextPage to load data page by page and hasMore to check if more data is available.

    Create an instance via ai.nexconn.chat.channel.GroupChannel.createSearchJoinedGroupsQuery; it cannot be constructed directly.

    Usage example:

    val params = SearchJoinedGroupsQueryParams(groupName = "Tech Discussion")
    val query = GroupChannel.createSearchJoinedGroupsQuery(params)
    
    query.loadNextPage { result, error ->
        if (error == null && result != null) {
            // result.data - group list
            // result.totalCount - total count
        }
        if (query.hasMore) {
            query.loadNextPage { ... }
        }
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Boolean hasMore
      private final Boolean isLoading
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description