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