Class EventTimeClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2024_09_03
- 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
AvailableLocations
Associated AvailableLocations.
public PaginatedLocationClient AvailableLocations { get; }
Property Value
CheckIns
Associated CheckIns.
public PaginatedCheckInClient CheckIns { get; }
Property Value
Event
Associated Event.
public EventClient Event { get; }
Property Value
EventPeriod
Associated EventPeriod.
public EventPeriodClient EventPeriod { get; }
Property Value
Headcounts
Associated Headcounts.
public PaginatedHeadcountClient Headcounts { get; }
Property Value
LocationEventTimes
Associated LocationEventTimes.
public PaginatedLocationEventTimeClient LocationEventTimes { 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()
Returns
IncludeEventPeriod()
Include related EventPeriod resources in the response.
public EventTimeClient IncludeEventPeriod()
Returns
IncludeHeadcounts()
Include related Headcounts resources in the response.
public EventTimeClient IncludeHeadcounts()