Table of Contents

Class PlanTimeClient

Namespace
Crews.PlanningCenter.Api.Services.V2018_08_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

httpClient HttpClient
uri Uri

Properties

SplitTeamRehearsalAssignments

Associated SplitTeamRehearsalAssignments.

public PaginatedSplitTeamRehearsalAssignmentClient SplitTeamRehearsalAssignments { get; }

Property Value

PaginatedSplitTeamRehearsalAssignmentClient

Methods

DeleteAsync(CancellationToken)

Deletes the PlanTime resource asynchronously.

public Task DeleteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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

cancellationToken CancellationToken

A 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

PlanTimeClient

PatchAsync(PlanTime, CancellationToken)

Updates an existing PlanTime resource asynchronously.

public Task<PlanTimeResponse> PatchAsync(PlanTime resource, CancellationToken cancellationToken = default)

Parameters

resource PlanTime

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A 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

document JsonApiDocument<PlanTimeResource>

The JSON:API document to be sent in the patch request.

cancellationToken CancellationToken

A 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.