addMembersToGroup()
method. This method takes the below parameters:
GUID
- GUID of the group the members are to be added to.members
- This is a list of GroupMember
objects. In order to add members, you need to create an object of the GroupMember
class. The UID and the scope of the GroupMember
are mandatory.bannedMembers
- This is the list of UID's
that need to be banned from the Group. This can be set to null
if there are no members to be banned.UID
of the users and the value will either be success
or an error message describing why the operation to add the user to the group.
onMemberAddedToGroup()
methods of the GroupListener
class.
onMemberAddedToGroup()
- This method is triggered when any user is added to the group so that the logged in user is informed of the other members added to the group.
Action
message. An Action
message is a sub-class of BaseMessage
class.
For the group member added event, in the Action
object received, the following fields can help you get the relevant information-
action
- added
actionOn
- User object containing the details of the user who was added to the groupactionBy
- User object containing the details of the user who added the member to the groupactionFor
- Group object containing the details of the group to which the member was added