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
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches the TextSetting resource asynchronously.
public Task<TextSettingResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
resourceTextSettingThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA 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
documentJsonApiDocument<TextSettingResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA 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.