Class EventTimeClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2021_07_20
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the EventTime resource.
public class EventTimeClient : SingletonResourceClient<EventTime, EventTimeResource, EventTimeResponse>
- Inheritance
-
EventTimeClient
- Inherited Members
Constructors
EventTimeClient(HttpClient, Uri)
Client for interacting with the EventTime resource.
public EventTimeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Event
Associated Event.
public EventClient Event { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public EventTimeClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- EventTimeClient
The current EventTimeClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public EventTimeClient ClearParameters()
Returns
- EventTimeClient
The current EventTimeClient instance.
GetAsync(CancellationToken)
Fetches the EventTime resource asynchronously.
public Task<EventTimeResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EventTimeResponse>
A task representing the asynchronous operation, containing the EventTime resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEvent()
Include related Event resources in the response.
public EventTimeClient IncludeEvent()