Class FieldDatumClient
- Namespace
- Crews.PlanningCenter.Api.People.V2025_11_10
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the FieldDatum resource.
public class FieldDatumClient : SingletonResourceClient<FieldDatum, FieldDatumResource, FieldDatumResponse>
- Inheritance
-
FieldDatumClient
- Inherited Members
Constructors
FieldDatumClient(HttpClient, Uri)
Client for interacting with the FieldDatum resource.
public FieldDatumClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
FieldDefinition
Associated FieldDefinition.
public FieldDefinitionClient FieldDefinition { get; }
Property Value
FieldOption
Associated FieldOption.
public FieldOptionClient FieldOption { get; }
Property Value
Person
Associated Person.
public PersonClient Person { get; }
Property Value
Tab
Associated Tab.
public TabClient Tab { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the FieldDatum resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task
A task representing the asynchronous delete operation.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
GetAsync(CancellationToken)
Fetches the FieldDatum resource asynchronously.
public Task<FieldDatumResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<FieldDatumResponse>
A task representing the asynchronous operation, containing the FieldDatum resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeFieldDefinition()
Include related FieldDefinition resources in the response.
public FieldDatumClient IncludeFieldDefinition()
Returns
IncludeFieldOption()
Include related FieldOption resources in the response.
public FieldDatumClient IncludeFieldOption()
Returns
IncludeTab()
Include related Tab resources in the response.
public FieldDatumClient IncludeTab()
Returns
PatchAsync(FieldDatum, CancellationToken)
Updates an existing FieldDatum resource asynchronously.
public Task<FieldDatumResponse> PatchAsync(FieldDatum resource, CancellationToken cancellationToken = default)
Parameters
resourceFieldDatumThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<FieldDatumResponse>
A task representing the asynchronous operation, containing the updated FieldDatum resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<FieldDatumResource>, CancellationToken)
Updates an existing FieldDatum resource asynchronously.
public Task<FieldDatumResponse> PatchAsync(JsonApiDocument<FieldDatumResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<FieldDatumResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<FieldDatumResponse>
A task representing the asynchronous operation, containing the updated FieldDatum resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.