Class GroupTypeClient
- Namespace
- Crews.PlanningCenter.Api.Groups.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the GroupType resource.
public class GroupTypeClient : SingletonResourceClient<GroupType, GroupTypeResource, GroupTypeResponse>
- Inheritance
-
GroupTypeClient
- Inherited Members
Constructors
GroupTypeClient(HttpClient, Uri)
Client for interacting with the GroupType resource.
public GroupTypeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Events
Associated Events.
public PaginatedEventClient Events { get; }
Property Value
Groups
Associated Groups.
public PaginatedGroupClient Groups { get; }
Property Value
Resources
Associated Resources.
public PaginatedResourceClient Resources { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the GroupType resource asynchronously.
public Task<GroupTypeResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<GroupTypeResponse>
A task representing the asynchronous operation, containing the GroupType resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.