public class GroupService extends Object
Constructor and Description |
---|
GroupService(RestClient client,
String baseUrl) |
Modifier and Type | Method and Description |
---|---|
GroupMember |
addMember(GroupId groupId,
GroupMember groupMember)
Invite a new sender to the group.
|
Group |
createGroup(Group group)
Create a new group belonging to this account.
|
void |
deleteGroup(GroupId groupId)
Delete a group belonging to this account, specified by GroupId
|
Group |
getGroup(GroupId groupId)
Retrieve a single group belonging to this account, specified by GroupId.
|
List<String> |
getGroupMemberEmails(GroupId groupId)
Retrieve a list of emails for all members of a group belonging to this account, specified by GroupId.
|
List<GroupMember> |
getGroupMembers(GroupId groupId)
Retrieve a list of all members of a group belonging to this account, specified by GroupId.
|
List<Group> |
getMyGroups()
Get a list of all groups belong to the account under which the requests are being issued.
|
Group |
inviteMember(GroupId groupId,
GroupMember groupMember)
Invite a new sender to the group.
|
Group |
updateGroup(Group group,
GroupId groupId)
Update a group belonging to this account
|
public GroupService(RestClient client, String baseUrl)
public List<Group> getMyGroups()
public Group getGroup(GroupId groupId)
groupId
- public Group createGroup(Group group)
group
- public Group updateGroup(Group group, GroupId groupId)
group
- public GroupMember addMember(GroupId groupId, GroupMember groupMember)
groupId
- groupMember
- public Group inviteMember(GroupId groupId, GroupMember groupMember)
groupId
- groupMember
- public void deleteGroup(GroupId groupId)
groupId
- public List<String> getGroupMemberEmails(GroupId groupId)
groupId
- public List<GroupMember> getGroupMembers(GroupId groupId)
groupId
- Copyright 2014, Silanis Technology, Inc. All rights reserved.