Class StationClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2023_04_05
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Station resource.
public class StationClient : SingletonResourceClient<Station, StationResource, StationResponse>
- Inheritance
-
StationClient
- Inherited Members
Constructors
StationClient(HttpClient, Uri)
Client for interacting with the Station resource.
public StationClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
CheckInGroups
Associated CheckInGroups.
public PaginatedCheckInGroupClient CheckInGroups { get; }
Property Value
CheckedInAtCheckIns
Associated CheckedInAtCheckIns.
public PaginatedCheckInClient CheckedInAtCheckIns { get; }
Property Value
Event
Associated Event.
public EventClient Event { get; }
Property Value
Location
Associated Location.
public LocationClient Location { get; }
Property Value
PrintStation
Associated PrintStation.
public StationClient PrintStation { get; }
Property Value
Theme
Associated Theme.
public ThemeClient Theme { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Station resource asynchronously.
public Task<StationResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<StationResponse>
A task representing the asynchronous operation, containing the Station resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEvent()
Include related Event resources in the response.
public StationClient IncludeEvent()
Returns
IncludeLocation()
Include related Location resources in the response.
public StationClient IncludeLocation()
Returns
IncludePrintStation()
Include related PrintStation resources in the response.
public StationClient IncludePrintStation()
Returns
IncludeTheme()
Include related Theme resources in the response.
public StationClient IncludeTheme()