Package ai.nexconn.chat.channel
Object GroupChannel.Companion
-
- All Implemented Interfaces:
public class GroupChannel.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static GroupChannel.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitgetGroupsInfo(List<String> groupIds, OperationHandler<List<GroupInfo>> handler)Batch gets group details. final UnitgetJoinedGroups(List<String> groupIds, OperationHandler<List<GroupInfo>> handler)Gets details of joined groups by group IDs. final UnitcreateGroup(CreateGroupParams params, CreateGroupHandler handler)Creates a new group and optionally invites users to join. final GroupApplicationsQuerycreateGroupApplicationsQuery(GroupApplicationsQueryParams params)Creates a paginated query for group applications. final JoinedGroupsByRoleQuerycreateJoinedGroupsByRoleQuery(JoinedGroupsByRoleQueryParams params)Creates a paginated query for joined groups filtered by role. final SearchJoinedGroupsQuerycreateSearchJoinedGroupsQuery(SearchJoinedGroupsQueryParams params)Creates a paginated query to search joined groups. final SearchGroupMembersQuerycreateSearchGroupMembersQuery(SearchGroupMembersQueryParams params)Creates a paginated query to search group members by name. final GroupMembersByRoleQuerycreateGroupMembersByRoleQuery(GroupMembersByRoleQueryParams params)Creates a paginated query for group members filtered by role. -
-
Method Detail
-
getGroupsInfo
final Unit getGroupsInfo(List<String> groupIds, OperationHandler<List<GroupInfo>> handler)
Batch gets group details. Up to 20 groups per query.
- Parameters:
groupIds- List of group IDs (max 20)handler- Callback returning the list of group details on success
-
getJoinedGroups
final Unit getJoinedGroups(List<String> groupIds, OperationHandler<List<GroupInfo>> handler)
Gets details of joined groups by group IDs.
- Parameters:
groupIds- List of group IDs to queryhandler- Callback returning the list of joined group details on success
-
createGroup
final Unit createGroup(CreateGroupParams params, CreateGroupHandler handler)
Creates a new group and optionally invites users to join.
- Parameters:
params- Group creation parameters including group ID, invitee user IDs, and permissionshandler- Callback returning the process code on success, or errorKeys and error on failure
-
createGroupApplicationsQuery
final GroupApplicationsQuery createGroupApplicationsQuery(GroupApplicationsQueryParams params)
Creates a paginated query for group applications.
- Parameters:
params- Query parameters including page size and application directions- Returns:
A paginated group applications query object
-
createJoinedGroupsByRoleQuery
final JoinedGroupsByRoleQuery createJoinedGroupsByRoleQuery(JoinedGroupsByRoleQueryParams params)
Creates a paginated query for joined groups filtered by role.
- Parameters:
params- Query parameters including role and page size- Returns:
A paginated joined groups query object
-
createSearchJoinedGroupsQuery
final SearchJoinedGroupsQuery createSearchJoinedGroupsQuery(SearchJoinedGroupsQueryParams params)
Creates a paginated query to search joined groups.
- Parameters:
params- Search query parameters- Returns:
A paginated search query object
-
createSearchGroupMembersQuery
final SearchGroupMembersQuery createSearchGroupMembersQuery(SearchGroupMembersQueryParams params)
Creates a paginated query to search group members by name.
- Parameters:
params- Search parameters including group ID and member name keyword- Returns:
A paginated search query object
-
createGroupMembersByRoleQuery
final GroupMembersByRoleQuery createGroupMembersByRoleQuery(GroupMembersByRoleQueryParams params)
Creates a paginated query for group members filtered by role.
- Parameters:
params- Query parameters including group ID, role, and page size- Returns:
A paginated members query object
-
-
-
-