Table of Contents

Class EventConnectionClient

Namespace
Crews.PlanningCenter.Api.Calendar.V2021_07_20
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the EventConnection resource.

public class EventConnectionClient : SingletonResourceClient<EventConnection, EventConnectionResource, EventConnectionResponse>
Inheritance
EventConnectionClient
Inherited Members

Constructors

EventConnectionClient(HttpClient, Uri)

Client for interacting with the EventConnection resource.

public EventConnectionClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

DeleteAsync(CancellationToken)

Deletes the EventConnection 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 EventConnection resource asynchronously.

public Task<EventConnectionResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EventConnectionResponse>

A task representing the asynchronous operation, containing the EventConnection resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(EventConnection, CancellationToken)

Updates an existing EventConnection resource asynchronously.

public Task<EventConnectionResponse> PatchAsync(EventConnection resource, CancellationToken cancellationToken = default)

Parameters

resource EventConnection

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EventConnectionResponse>

A task representing the asynchronous operation, containing the updated EventConnection resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(JsonApiDocument<EventConnectionResource>, CancellationToken)

Updates an existing EventConnection resource asynchronously.

public Task<EventConnectionResponse> PatchAsync(JsonApiDocument<EventConnectionResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<EventConnectionResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EventConnectionResponse>

A task representing the asynchronous operation, containing the updated EventConnection resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.