Class PaginatedTabClient
- Namespace
- Crews.PlanningCenter.Api.People.V2024_09_12
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with Tab collection resources.
public class PaginatedTabClient : PaginatedResourceClient<Tab, TabResource, TabCollectionResponse, TabResponse>
- Inheritance
-
PaginatedTabClient
- Inherited Members
Constructors
PaginatedTabClient(HttpClient, Uri)
Client for interacting with Tab collection resources.
public PaginatedTabClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of Tab resources asynchronously.
public Task<TabCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TabCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of Tab resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeFieldDefinitions()
Include related FieldDefinitions resources in the response.
public TabClient IncludeFieldDefinitions()
Returns
IncludeFieldOptions()
Include related FieldOptions resources in the response.
public TabClient IncludeFieldOptions()
Returns
OrderByName()
Sort response items by the Name attribute.
public TabClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public TabClient OrderByNameDescending()
Returns
OrderBySequence()
Sort response items by the Sequence attribute.
public TabClient OrderBySequence()
Returns
OrderBySequenceDescending()
Sort response items by the Sequence attribute. Use reverse order.
public TabClient OrderBySequenceDescending()
Returns
OrderBySlug()
Sort response items by the Slug attribute.
public TabClient OrderBySlug()
Returns
OrderBySlugDescending()
Sort response items by the Slug attribute. Use reverse order.
public TabClient OrderBySlugDescending()
Returns
PostAsync(Tab, CancellationToken)
Creates a new Tab resource asynchronously.
public Task<TabResponse> PostAsync(Tab resource, CancellationToken cancellationToken = default)
Parameters
resourceTabThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TabResponse>
A task representing the asynchronous operation, containing the created Tab resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PostAsync(JsonApiDocument<TabResource>, CancellationToken)
Creates a new Tab resource asynchronously.
public Task<TabResponse> PostAsync(JsonApiDocument<TabResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<TabResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TabResponse>
A task representing the asynchronous operation, containing the created Tab resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WhereName(string)
Query response items by the Name attribute.
public TabClient WhereName(string value)
Parameters
valuestring
Returns
WhereSequence(int)
Query response items by the Sequence attribute.
public TabClient WhereSequence(int value)
Parameters
valueint
Returns
WhereSlug(string)
Query response items by the Slug attribute.
public TabClient WhereSlug(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a Tab client for a specific resource ID.
public TabClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- TabClient
A new instance of the resource client for the specified resource ID.