Table of Contents

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

httpClient HttpClient
uri Uri

Properties

Deliveries

Associated Deliveries.

public PaginatedDeliveryClient Deliveries { get; }

Property Value

PaginatedDeliveryClient

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public EventClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

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

cancellationToken CancellationToken

A 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

cancellationToken CancellationToken

Returns

Task

RedeliverAsync(CancellationToken)

Planning Center does not provide a description for this action.

public Task RedeliverAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task