Table of Contents

Class PaginatedFieldOptionClient

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

Client for interacting with FieldOption collection resources.

public class PaginatedFieldOptionClient : PaginatedResourceClient<FieldOption, FieldOptionResource, FieldOptionCollectionResponse, FieldOptionResponse>
Inheritance
PaginatedFieldOptionClient
Inherited Members

Constructors

PaginatedFieldOptionClient(HttpClient, Uri)

Client for interacting with FieldOption collection resources.

public PaginatedFieldOptionClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of FieldOption resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<FieldOptionCollectionResponse>

A task representing the asynchronous operation, containing a paginated list of FieldOption resources.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

OrderBySequence()

Sort response items by the Sequence attribute.

public FieldOptionClient OrderBySequence()

Returns

FieldOptionClient

OrderBySequenceDescending()

Sort response items by the Sequence attribute. Use reverse order.

public FieldOptionClient OrderBySequenceDescending()

Returns

FieldOptionClient

OrderByValue()

Sort response items by the Value attribute.

public FieldOptionClient OrderByValue()

Returns

FieldOptionClient

OrderByValueDescending()

Sort response items by the Value attribute. Use reverse order.

public FieldOptionClient OrderByValueDescending()

Returns

FieldOptionClient

PostAsync(FieldOption, CancellationToken)

Creates a new FieldOption resource asynchronously.

public Task<FieldOptionResponse> PostAsync(FieldOption resource, CancellationToken cancellationToken = default)

Parameters

resource FieldOption

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<FieldOptionResponse>

A task representing the asynchronous operation, containing the created FieldOption resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<FieldOptionResource>, CancellationToken)

Creates a new FieldOption resource asynchronously.

public Task<FieldOptionResponse> PostAsync(JsonApiDocument<FieldOptionResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<FieldOptionResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<FieldOptionResponse>

A task representing the asynchronous operation, containing the created FieldOption resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereSequence(int)

Query response items by the Sequence attribute.

public FieldOptionClient WhereSequence(int value)

Parameters

value int

Returns

FieldOptionClient

WhereValue(string)

Query response items by the Value attribute.

public FieldOptionClient WhereValue(string value)

Parameters

value string

Returns

FieldOptionClient

WithId(string)

Creates a new instance of a FieldOption client for a specific resource ID.

public FieldOptionClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

FieldOptionClient

A new instance of the resource client for the specified resource ID.