TeamMembershipClient

interface TeamMembershipClient

Client wrapper for TeamMembership of a Team membership related APIs

Since

0.1

Functions

Link copied to clipboard
abstract fun create(    teamId: String,     personId: String?,     personEmail: String?,     isModerator: Boolean,     handler: CompletionHandler<TeamMembership>)

Adds a person to a team by person id; optionally making the person a moderator of the team.

Link copied to clipboard
abstract fun delete(teamMembershipId: String, handler: CompletionHandler<Void>)

Deletes a membership by id.

Link copied to clipboard
abstract fun get(teamMembershipId: String, handler: CompletionHandler<TeamMembership>)

Fetches the team membership details based on the team membership id

Link copied to clipboard
abstract fun list(    teamId: String,     max: Int,     handler: CompletionHandler<List<TeamMembership>>)

Lists all team memberships where the authenticated user belongs.

Link copied to clipboard
abstract fun update(    teamMembershipId: String,     isModerator: Boolean,     handler: CompletionHandler<TeamMembership>)

Updates the details for a team membership by id.