Class RosterListPersonClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2025_05_28
- 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
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public RosterListPersonClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- RosterListPersonClient
The current RosterListPersonClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public RosterListPersonClient ClearParameters()
Returns
- RosterListPersonClient
The current RosterListPersonClient instance.
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.