Table of Contents

Class TextSettingClient

Namespace
Crews.PlanningCenter.Api.Services.V2018_08_01
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the TextSetting resource.

public class TextSettingClient : SingletonResourceClient<TextSetting, TextSettingResource, TextSettingResponse>
Inheritance
TextSettingClient
Inherited Members

Constructors

TextSettingClient(HttpClient, Uri)

Client for interacting with the TextSetting resource.

public TextSettingClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches the TextSetting resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<TextSettingResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(TextSetting, CancellationToken)

Updates an existing TextSetting resource asynchronously.

public Task<TextSettingResponse> PatchAsync(TextSetting resource, CancellationToken cancellationToken = default)

Parameters

resource TextSetting

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<TextSettingResponse>

A task representing the asynchronous operation, containing the updated TextSetting resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(JsonApiDocument<TextSettingResource>, CancellationToken)

Updates an existing TextSetting resource asynchronously.

public Task<TextSettingResponse> PatchAsync(JsonApiDocument<TextSettingResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<TextSettingResource>

The JSON:API document to be sent in the patch request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<TextSettingResponse>

A task representing the asynchronous operation, containing the updated TextSetting resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.