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
httpClientHttpClienturiUri
Methods
DeleteAsync(CancellationToken)
Deletes the EventConnection 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 EventConnection resource asynchronously.
public Task<EventConnectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
resourceEventConnectionThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA 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
documentJsonApiDocument<EventConnectionResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA 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.