Class EventClient
- Namespace
- Crews.PlanningCenter.Api.Webhooks.V2022_10_20
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Event resource.
public class EventClient : SingletonResourceClient<Event, EventResource, EventResponse>
- Inheritance
-
EventClient
- Inherited Members
Constructors
EventClient(HttpClient, Uri)
Client for interacting with the Event resource.
public EventClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Deliveries
Associated Deliveries.
public PaginatedDeliveryClient Deliveries { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public EventClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- EventClient
The current EventClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public EventClient ClearParameters()
Returns
- EventClient
The current EventClient instance.
GetAsync(CancellationToken)
Fetches the Event resource asynchronously.
public Task<EventResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EventResponse>
A task representing the asynchronous operation, containing the Event resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IgnoreAsync(CancellationToken)
Planning Center does not provide a description for this action.
public Task IgnoreAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
RedeliverAsync(CancellationToken)
Planning Center does not provide a description for this action.
public Task RedeliverAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken