Class LocationEventTimeClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2019_07_17
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the LocationEventTime resource.
public class LocationEventTimeClient : SingletonResourceClient<LocationEventTime, LocationEventTimeResource, LocationEventTimeResponse>
- Inheritance
-
LocationEventTimeClient
- Inherited Members
Constructors
LocationEventTimeClient(HttpClient, Uri)
Client for interacting with the LocationEventTime resource.
public LocationEventTimeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
CheckIns
Associated CheckIns.
public PaginatedCheckInClient CheckIns { get; }
Property Value
EventTime
Associated EventTime.
public EventTimeClient EventTime { get; }
Property Value
Location
Associated Location.
public LocationClient Location { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the LocationEventTime resource asynchronously.
public Task<LocationEventTimeResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LocationEventTimeResponse>
A task representing the asynchronous operation, containing the LocationEventTime resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEventTime()
Include related EventTime resources in the response.
public LocationEventTimeClient IncludeEventTime()
Returns
IncludeLocation()
Include related Location resources in the response.
public LocationEventTimeClient IncludeLocation()