Class TeamClient
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 class TeamClient : ITeamClient, IApiAccessor
- Inheritance
-
TeamClient
- Implements
- Inherited Members
Constructors
TeamClient()
Initializes a new instance of the TeamClient class.
public TeamClient()
TeamClient(ApiClient)
Initializes a new instance of the TeamClient class using Configuration object.
public TeamClient(ApiClient apiClient)
Parameters
apiClient
ApiClientAn instance of ApiClient.
TeamClient(Configuration)
Initializes a new instance of the TeamClient class using Configuration object.
public TeamClient(Configuration configuration = null)
Parameters
configuration
ConfigurationAn instance of Configuration.
TeamClient(string)
Initializes a new instance of the TeamClient class.
public TeamClient(string basePath)
Parameters
basePath
stringGets or set the basePath.
Properties
Configuration
Gets or sets the configuration object.
public Configuration Configuration { get; set; }
Property Value
- Configuration
An instance of the Configuration.
ExceptionFactory
Gets or sets provides a factory method hook for the creation of exceptions.
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Methods
CreateTeam(CreateTeam)
Creates a new Team.
public TeamCreated CreateTeam(CreateTeam createTeam)
Parameters
createTeam
CreateTeamcreate team.
Returns
- TeamCreated
TeamCreated.
Exceptions
- ApiException
Thrown when fails to make API call.
CreateTeamAsync(CreateTeam)
Creates a new Team.
public Task<TeamCreated> CreateTeamAsync(CreateTeam createTeam)
Parameters
createTeam
CreateTeamcreate team.
Returns
- Task<TeamCreated>
Task of TeamCreated.
Exceptions
- ApiException
Thrown when fails to make API call.
CreateTeamAsyncWithHttpInfo(CreateTeam)
Creates a new Team.
public Task<ApiResponse<TeamCreated>> CreateTeamAsyncWithHttpInfo(CreateTeam createTeam = null)
Parameters
createTeam
CreateTeamcreate team.
Returns
- Task<ApiResponse<TeamCreated>>
Task of ApiResponse (TeamCreated).
Exceptions
- ApiException
Thrown when fails to make API call.
CreateTeamWithHttpInfo(CreateTeam)
Creates a new Team.
public ApiResponse<TeamCreated> CreateTeamWithHttpInfo(CreateTeam createTeam)
Parameters
createTeam
CreateTeamcreate team.
Returns
- ApiResponse<TeamCreated>
ApiResponse of TeamCreated.
Exceptions
- ApiException
Thrown when fails to make API call.
GetBasePath()
Gets the base path of the API client.
public string GetBasePath()
Returns
- string
The base path.
GetTeamDetails(string)
Get team Details for the given team Id.
public 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.
public Task<TeamDetails> GetTeamDetailsAsync(string teamId)
Parameters
teamId
stringteam Id.
Returns
- Task<TeamDetails>
Task of TeamDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
GetTeamDetailsAsyncWithHttpInfo(string)
Get team Details for the given team Id.
public Task<ApiResponse<TeamDetails>> GetTeamDetailsAsyncWithHttpInfo(string teamId)
Parameters
teamId
stringteam Id.
Returns
- Task<ApiResponse<TeamDetails>>
Task of ApiResponse (TeamDetails).
Exceptions
- ApiException
Thrown when fails to make API call.
GetTeamDetailsWithHttpInfo(string)
Get team Details for the given team Id.
public 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.
public 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
TeamList.
Exceptions
- ApiException
Thrown when fails to make API call.
ListTeamAsync(int, int?, string)
Get team List.
public 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.
public 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>>
Task of ApiResponse (TeamList).
Exceptions
- ApiException
Thrown when fails to make API call.
ListTeamWithHttpInfo(int, int?, string)
Get team List.
public 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 TeamList.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateTeam(UpdateTeam)
Updates team Name.
public void UpdateTeam(UpdateTeam updateTeam)
Parameters
updateTeam
UpdateTeamupdate team.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateTeamAsync(UpdateTeam)
Updates team Name.
public Task UpdateTeamAsync(UpdateTeam updateTeam)
Parameters
updateTeam
UpdateTeamupdate team.
Returns
- Task
Task of void.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateTeamAsyncWithHttpInfo(UpdateTeam)
Updates team Name.
public Task<ApiResponse<object>> UpdateTeamAsyncWithHttpInfo(UpdateTeam updateTeam)
Parameters
updateTeam
UpdateTeamupdate team.
Returns
- Task<ApiResponse<object>>
Task of ApiResponse.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateTeamWithHttpInfo(UpdateTeam)
Updates team Name.
public 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.