Interface ITeamClient
Represents a collection of functions to interact with the API endpoints. The functions perform actions such as create a new team, update team name, get team details with its group members, and get list of teams in an organization.
public interface ITeamClient : IApiAccessor
- Inherited Members
Methods
CreateTeam(CreateTeam)
Creates a new Team.
TeamCreated CreateTeam(CreateTeam createTeam)
Parameters
createTeam
CreateTeamcreate team.
Returns
- TeamCreated
CreateTeam.
Exceptions
- ApiException
Thrown when fails to make API call.
CreateTeamAsync(CreateTeam)
Creates a new Team.
Task<TeamCreated> CreateTeamAsync(CreateTeam createTeam)
Parameters
createTeam
CreateTeamcrate team.
Returns
- Task<TeamCreated>
CreateTeam.
Exceptions
- ApiException
Thrown when fails to make API call.
CreateTeamAsyncWithHttpInfo(CreateTeam)
Creates a new Team.
Task<ApiResponse<TeamCreated>> CreateTeamAsyncWithHttpInfo(CreateTeam createTeam)
Parameters
createTeam
CreateTeamcreate team.
Returns
- Task<ApiResponse<TeamCreated>>
ApiResponse of CreateTeam.
Exceptions
- ApiException
Thrown when fails to make API call.
CreateTeamWithHttpInfo(CreateTeam)
Creates a new Team.
ApiResponse<TeamCreated> CreateTeamWithHttpInfo(CreateTeam createTeam)
Parameters
createTeam
CreateTeamcreate team.
Returns
- ApiResponse<TeamCreated>
ApiResponse of CreateTeam.
Exceptions
- ApiException
Thrown when fails to make API call.
GetTeamDetails(string)
Get team Details for the given team Id.
TeamDetails GetTeamDetails(string teamId)
Parameters
teamId
stringteam Id.
Returns
- TeamDetails
TeamDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
GetTeamDetailsAsync(string)
Get team Details for the given team Id.
Task<TeamDetails> GetTeamDetailsAsync(string teamId)
Parameters
teamId
stringteam Id.
Returns
- Task<TeamDetails>
TeamDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
GetTeamDetailsAsyncWithHttpInfo(string)
Get team Details for the given team Id.
Task<ApiResponse<TeamDetails>> GetTeamDetailsAsyncWithHttpInfo(string teamId)
Parameters
teamId
stringTeam Id.
Returns
- Task<ApiResponse<TeamDetails>>
ApiResponse of TeamDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
GetTeamDetailsWithHttpInfo(string)
Get team Details for the given team Id.
ApiResponse<TeamDetails> GetTeamDetailsWithHttpInfo(string teamId)
Parameters
teamId
stringTeam Id.
Returns
- ApiResponse<TeamDetails>
ApiResponse of TeamDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
ListTeam(int, int?, string)
Get team list.
TeamList ListTeam(int page, int? pageSize = null, string searchKey = null)
Parameters
page
intPage.
pageSize
int?page Size (optional, default to 10).
searchKey
stringsearchKey (optional).
Returns
- TeamList
TeamDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
ListTeamAsync(int, int?, string)
Get team List.
Task<TeamList> ListTeamAsync(int page, int? pageSize = null, string searchKey = null)
Parameters
page
intpage.
pageSize
int?page Size (optional, default to 10).
searchKey
stringsearchKey (optional).
Returns
Exceptions
- ApiException
Thrown when fails to make API call.
ListTeamAsyncWithHttpInfo(int, int?, string)
Get team List.
Task<ApiResponse<TeamList>> ListTeamAsyncWithHttpInfo(int page, int? pageSize = null, string searchKey = null)
Parameters
page
intpage.
pageSize
int?page Size (optional, default to 10).
searchKey
stringsearchKey (optional).
Returns
- Task<ApiResponse<TeamList>>
ApiResponse of TeamListResponse.
Exceptions
- ApiException
Thrown when fails to make API call.
ListTeamWithHttpInfo(int, int?, string)
Get team List.
ApiResponse<TeamList> ListTeamWithHttpInfo(int page, int? pageSize = null, string searchKey = null)
Parameters
page
intpage.
pageSize
int?page Size (optional, default to 10).
searchKey
stringsearchKey (optional).
Returns
- ApiResponse<TeamList>
ApiResponse of TeamListResponse.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateTeam(UpdateTeam)
Updates team Name.
void UpdateTeam(UpdateTeam updateTeam)
Parameters
updateTeam
UpdateTeamupdate team.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateTeamAsync(UpdateTeam)
Updates team Name.
Task UpdateTeamAsync(UpdateTeam updateTeam)
Parameters
updateTeam
UpdateTeamupdate team.
Returns
- Task
UpdateTeamName.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateTeamAsyncWithHttpInfo(UpdateTeam)
Updates team Name.
Task<ApiResponse<object>> UpdateTeamAsyncWithHttpInfo(UpdateTeam updateTeam)
Parameters
updateTeam
UpdateTeamupdate team.
Returns
- Task<ApiResponse<object>>
ApiResponse of Object(void).
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateTeamWithHttpInfo(UpdateTeam)
Updates team Name.
ApiResponse<object> UpdateTeamWithHttpInfo(UpdateTeam updateTeam)
Parameters
updateTeam
UpdateTeamupdate team.
Returns
- ApiResponse<object>
ApiResponse of Object(void).
Exceptions
- ApiException
Thrown when fails to make API call.