Class GroupOperationsHandler

  • All Implemented Interfaces:

    
    public class GroupOperationsHandler
    
                        

    Group operations handler.

    Note: Call stop to release resources when done.

    Since:

    5.12.0

    • Constructor Detail

      • GroupOperationsHandler

        GroupOperationsHandler(ChannelIdentifier channelIdentifier)
        Constructor that initializes the group ID.
        Parameters:
        channelIdentifier - the channel identifier
    • Method Detail

      • createGroup

        @Deprecated() void createGroup(GroupInfo groupInfo, List<String> inviteeUserIds)
      • createGroupExamine

         void createGroupExamine(GroupInfo groupInfo, List<String> inviteeUserIds)
      • inviteUsersToGroup

         void inviteUsersToGroup(List<String> userIds)

        Invites users to join the group.

        Parameters:
        userIds - the list of user IDs
      • kickGroupMembers

         void kickGroupMembers(List<String> userIds, LeaveGroupConfig config)

        Kicks members from the group.

        Parameters:
        userIds - the list of user IDs
        config - the leave group configuration
      • updateGroupInfo

        @Deprecated() void updateGroupInfo(GroupInfo groupInfo)

        Updates the group info.

        Parameters:
        groupInfo - the group info
      • updateGroupInfoExamine

         void updateGroupInfoExamine(GroupInfo groupInfo)

        Updates the group info with review.

        Parameters:
        groupInfo - the group info
      • setGroupMemberInfo

        @Deprecated() void setGroupMemberInfo(String userId, String nickname, String extra)

        Sets group member info.

        Parameters:
        userId - the user ID
        nickname - the nickname
        extra - the extra information
      • setGroupMemberInfoExamine

         void setGroupMemberInfoExamine(String userId, String nickname, String extra)

        Sets group member info with review.

        Parameters:
        userId - the user ID
        nickname - the nickname
        extra - the extra information
      • quitGroup

         void quitGroup(LeaveGroupConfig config)

        Quits the group.

        Parameters:
        config - the leave group configuration
      • addGroupFollows

         void addGroupFollows(List<String> userIds)

        Adds favorited group members.

        Parameters:
        userIds - the list of user IDs
        Since:

        5.12.2

      • removeGroupFollows

         void removeGroupFollows(List<String> userIds)

        Removes favorited group members.

        Parameters:
        userIds - the list of user IDs
        Since:

        5.12.2

      • transferGroupOwner

         void transferGroupOwner(String newOwnerId, boolean quitGroup, LeaveGroupConfig config)

        Transfers group ownership.

        Parameters:
        newOwnerId - the new owner's user ID
        quitGroup - whether to quit the group after transfer
        config - the leave group configuration
        Since:

        5.12.2

      • addGroupManagers

         void addGroupManagers(List<String> userIds)

        Adds group managers.

        Parameters:
        userIds - the list of user IDs
        Since:

        5.12.2

      • removeGroupManagers

         void removeGroupManagers(List<String> userIds)

        Removes group managers.

        Parameters:
        userIds - the list of user IDs
        Since:

        5.12.2

      • joinGroup

         void joinGroup()

        Joins the group.

        The join permission determines whether the user can join directly. When the group requires approval, the RC_GROUP_JOIN_GROUP_NEED_MANAGER_ACCEPT status code is returned, indicating the user needs to wait for the owner or manager to approve.

        Since:

        5.34.0