Class RosterListPersonClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2023_04_05
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the RosterListPerson resource.
public class RosterListPersonClient : SingletonResourceClient<RosterListPerson, RosterListPersonResource, RosterListPersonResponse>
- Inheritance
-
RosterListPersonClient
- Inherited Members
Constructors
RosterListPersonClient(HttpClient, Uri)
Client for interacting with the RosterListPerson resource.
public RosterListPersonClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches the RosterListPerson resource asynchronously.
public Task<RosterListPersonResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<RosterListPersonResponse>
A task representing the asynchronous operation, containing the RosterListPerson resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.