Class PaginatedFormFieldOptionClient
- Namespace
- Crews.PlanningCenter.Api.People.V2023_02_15
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with FormFieldOption collection resources.
public class PaginatedFormFieldOptionClient : PaginatedResourceClient<FormFieldOption, FormFieldOptionResource, FormFieldOptionCollectionResponse, FormFieldOptionResponse>
- Inheritance
-
PaginatedResourceClient<FormFieldOption, FormFieldOptionResource, FormFieldOptionCollectionResponse, FormFieldOptionResponse>PaginatedFormFieldOptionClient
- Inherited Members
Constructors
PaginatedFormFieldOptionClient(HttpClient, Uri)
Client for interacting with FormFieldOption collection resources.
public PaginatedFormFieldOptionClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of FormFieldOption resources asynchronously.
public Task<FormFieldOptionCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<FormFieldOptionCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of FormFieldOption resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public FormFieldOptionClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public FormFieldOptionClient OrderByCreatedAtDescending()
Returns
OrderBySequence()
Sort response items by the Sequence attribute.
public FormFieldOptionClient OrderBySequence()
Returns
OrderBySequenceDescending()
Sort response items by the Sequence attribute. Use reverse order.
public FormFieldOptionClient OrderBySequenceDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public FormFieldOptionClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public FormFieldOptionClient OrderByUpdatedAtDescending()
Returns
WithId(string)
Creates a new instance of a FormFieldOption client for a specific resource ID.
public FormFieldOptionClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- FormFieldOptionClient
A new instance of the resource client for the specified resource ID.