Table of Contents

Class NoteClient

Namespace
Crews.PlanningCenter.Api.Giving.V2019_10_18
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the Note resource.

public class NoteClient : SingletonResourceClient<Note, NoteResource, NoteResponse>
Inheritance
NoteClient
Inherited Members

Constructors

NoteClient(HttpClient, Uri)

Client for interacting with the Note resource.

public NoteClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public NoteClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

NoteClient

The current NoteClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public NoteClient ClearParameters()

Returns

NoteClient

The current NoteClient instance.

GetAsync(CancellationToken)

Fetches the Note resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<NoteResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.