Class PlanTimeClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_11_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the PlanTime resource.
public class PlanTimeClient : SingletonResourceClient<PlanTime, PlanTimeResource, PlanTimeResponse>
- Inheritance
-
PlanTimeClient
- Inherited Members
Constructors
PlanTimeClient(HttpClient, Uri)
Client for interacting with the PlanTime resource.
public PlanTimeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
SplitTeamRehearsalAssignments
Associated SplitTeamRehearsalAssignments.
public PaginatedSplitTeamRehearsalAssignmentClient SplitTeamRehearsalAssignments { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the PlanTime resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task
A task representing the asynchronous delete operation.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
GetAsync(CancellationToken)
Fetches the PlanTime resource asynchronously.
public Task<PlanTimeResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<PlanTimeResponse>
A task representing the asynchronous operation, containing the PlanTime resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeSplitTeamRehearsalAssignments()
Include related SplitTeamRehearsalAssignments resources in the response.
public PlanTimeClient IncludeSplitTeamRehearsalAssignments()
Returns
PatchAsync(PlanTime, CancellationToken)
Updates an existing PlanTime resource asynchronously.
public Task<PlanTimeResponse> PatchAsync(PlanTime resource, CancellationToken cancellationToken = default)
Parameters
resourcePlanTimeThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<PlanTimeResponse>
A task representing the asynchronous operation, containing the updated PlanTime resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<PlanTimeResource>, CancellationToken)
Updates an existing PlanTime resource asynchronously.
public Task<PlanTimeResponse> PatchAsync(JsonApiDocument<PlanTimeResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<PlanTimeResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<PlanTimeResponse>
A task representing the asynchronous operation, containing the updated PlanTime resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.