Class TeamClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Team resource.
public class TeamClient : SingletonResourceClient<Team, TeamResource, TeamResponse>
- Inheritance
-
TeamClient
- Inherited Members
Constructors
TeamClient(HttpClient, Uri)
Client for interacting with the Team resource.
public TeamClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
People
Associated People.
public PaginatedPersonClient People { get; }
Property Value
PersonTeamPositionAssignments
Associated PersonTeamPositionAssignments.
public PaginatedPersonTeamPositionAssignmentClient PersonTeamPositionAssignments { get; }
Property Value
ServiceTypes
Associated ServiceTypes.
public PaginatedServiceTypeClient ServiceTypes { get; }
Property Value
TeamLeaders
Associated TeamLeaders.
public PaginatedTeamLeaderClient TeamLeaders { get; }
Property Value
TeamPositions
Associated TeamPositions.
public PaginatedTeamPositionClient TeamPositions { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Team resource asynchronously.
public Task<TeamResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TeamResponse>
A task representing the asynchronous operation, containing the Team resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludePeople()
Include related People resources in the response.
public TeamClient IncludePeople()
Returns
IncludePersonTeamPositionAssignments()
Include related PersonTeamPositionAssignments resources in the response.
public TeamClient IncludePersonTeamPositionAssignments()
Returns
IncludeServiceTypes()
Include related ServiceTypes resources in the response.
public TeamClient IncludeServiceTypes()
Returns
IncludeTeamLeaders()
Include related TeamLeaders resources in the response.
public TeamClient IncludeTeamLeaders()
Returns
IncludeTeamPositions()
Include related TeamPositions resources in the response.
public TeamClient IncludeTeamPositions()