Manage a Group
#
Add ParticipantsTo add a participants to a existing group use below method. You can add multiple participants by passing multiple USER_JID
. Once the request is made successfully, an groupProfileListener callback will be triggered and response will be received for all group participants.
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_JID | Group JID | JID String | true |
GROUP_NAME | Group Name | String | true |
USER_JID | Array of To User JID | JID String | true |
#
Remove ParticipantTo remove a participant from a existing group use below method. Once the request is made successfully, an groupProfileListener callback will be triggered and response will be received for all group participants.
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_JID | Group JID | JID String | true |
USER_JID | User JID | JID String | true |
IS_ADMIN | Whether the To User is Admin or not | Boolean | true |
#
Make As AdminTo make a participant as a admin to the group. Once the request is made successfully, an groupProfileListener callback will be triggered and response will be received for all group participants.
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_JID | Group JID | JID String | true |
USER_JID | User JID | JID String | true |
#
Exit GroupTo leave a group for the participant use below method. If the user is admin pass isAdmin as a true, otherwise false. Once the request is made successfully, an groupProfileListener callback will be triggered and response will be received for all group participants.
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_JID | Group JID | JID String | true |
USER_JID | User JID | JID String | true |
IS_ADMIN | Whether the User is Admin or not | String | true |