kickGroupMember()
method.
kickGroupMember()
takes following parameters
Parameter | Description |
---|---|
UID | The UID of the user to be kicked. |
GUID | The GUID of the group from which user is to be kicked |
banGroupMember()
method.
banGroupMember()
method takes the following parameters:
Parameter | Description |
---|---|
UID | The UID of the user to be banned. |
GUID | The GUID of the group from which user is to be banned. |
unbanGroupMember()
method.
unbanGroupMember()
method takes the following parameters
Parameter | Description |
---|---|
UID | The UID of the user to be unbanned. |
GUID | The UID of the group from which user is to be banned |
BannedGroupMembersRequest
class. To use this class i.e to create an object of the BannedGroupMembersRequest class, you need to use the BannedGroupMembersRequestBuilder
class. The BannedGroupMembersRequestBuilder
class allows you to set the parameters based on which the banned group members are to be fetched.
The BannedGroupMembersRequestBuilder
class allows you to set the below parameters:
The GUID
of the group for which the banned members are to be fetched must be specified in the constructor of the GroupMembersRequestBuilder
class.
BannedGroupMembersRequest
class.
Once you have the object of the BannedGroupMembersRequest
class, you need to call the fetchNext()
method. Calling this method will return a list of GroupMember
objects containing n number of banned members where n is the limit set in the builder class.
GroupListener
class.
onGroupMemberKicked()
- triggered when any group member has been kicked.onGroupMemberBanned()
- triggered when any group member has been banned.onGroupMemberUnbanned()
- triggered when any group member has been unbanned.Action
message. An Action
message is a sub-class of BaseMessage
class.
For group member kicked event, the details can be obtained using the below fields of the Action
class-
action
- kicked
actionBy
- User object containing the details of the user who has kicked the memberactionOn
- User object containing the details of the member that has been kickedactionFor
- Group object containing the details of the Group from which the member was kickedAction
class-
action
- banned
actionBy
- User object containing the details of the user who has banned the memberactionOn
- User object containing the details of the member that has been bannedactionFor
- Group object containing the details of the Group from which the member was bannedAction
class-
action
- unbanned
actionBy
- User object containing the details of the user who has unbanned the memberactionOn
- User object containing the details of the member that has been unbannedactionFor
- Group object containing the details of the Group from which the member was unbanned