Table of Contents

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

httpClient HttpClient
uri Uri

Properties

Events

Associated Events.

public PaginatedEventClient Events { get; }

Property Value

PaginatedEventClient

Groups

Associated Groups.

public PaginatedGroupClient Groups { get; }

Property Value

PaginatedGroupClient

Resources

Associated Resources.

public PaginatedResourceClient Resources { get; }

Property Value

PaginatedResourceClient

Methods

GetAsync(CancellationToken)

Fetches the GroupType resource asynchronously.

public Task<GroupTypeResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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.