Table of Contents

Class GradeClient

Namespace
Crews.PlanningCenter.Api.People.V2025_11_10
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the Grade resource.

public class GradeClient : SingletonResourceClient<Grade, GradeResource, GradeResponse>
Inheritance
GradeClient
Inherited Members

Constructors

GradeClient(HttpClient, Uri)

Client for interacting with the Grade resource.

public GradeClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public GradeClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

GradeClient

The current GradeClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public GradeClient ClearParameters()

Returns

GradeClient

The current GradeClient instance.

GetAsync(CancellationToken)

Fetches the Grade resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<GradeResponse>

A task representing the asynchronous operation, containing the Grade resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.