public interface TeamClient
| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String name,
CompletionHandler<Team> handler)
Creates a team.
|
void |
delete(java.lang.String teamId,
CompletionHandler<java.lang.Void> handler) |
void |
get(java.lang.String teamId,
CompletionHandler<Team> handler)
Retrieves the details for a team by id.
|
void |
list(int max,
CompletionHandler<java.util.List<Team>> handler)
Lists teams to which the authenticated user belongs.
|
void |
update(java.lang.String teamId,
java.lang.String name,
CompletionHandler<Team> handler)
Updates the details for a team by id.
|
void list(int max,
@NonNull
CompletionHandler<java.util.List<Team>> handler)
max - The maximum number of teams in the response.handler - A closure to be executed once the request has finished.void create(@NonNull
java.lang.String name,
@NonNull
CompletionHandler<Team> handler)
See the Team Memberships API to learn how to add more people to the team.
name - A user-friendly name for the team.handler - A closure to be executed once the request has finished.TeamMembershipClientvoid get(@NonNull
java.lang.String teamId,
@NonNull
CompletionHandler<Team> handler)
teamId - The identifier of the team.handler - A closure to be executed once the request has finished.void update(@NonNull
java.lang.String teamId,
java.lang.String name,
@NonNull
CompletionHandler<Team> handler)
teamId - The identifier of the team.name - A user-friendly name for the team.handler - A closure to be executed once the request has finished.void delete(@NonNull
java.lang.String teamId,
@NonNull
CompletionHandler<java.lang.Void> handler)
teamId - The identifier of the team.handler - A closure to be executed once the request has finished.