Table of Contents

Class PaginatedTabClient

Namespace
Crews.PlanningCenter.Api.People.V2018_08_01
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

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of Tab resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A 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

TabClient

IncludeFieldOptions()

Include related FieldOptions resources in the response.

public TabClient IncludeFieldOptions()

Returns

TabClient

OrderByName()

Sort response items by the Name attribute.

public TabClient OrderByName()

Returns

TabClient

OrderByNameDescending()

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

public TabClient OrderByNameDescending()

Returns

TabClient

OrderBySequence()

Sort response items by the Sequence attribute.

public TabClient OrderBySequence()

Returns

TabClient

OrderBySequenceDescending()

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

public TabClient OrderBySequenceDescending()

Returns

TabClient

OrderBySlug()

Sort response items by the Slug attribute.

public TabClient OrderBySlug()

Returns

TabClient

OrderBySlugDescending()

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

public TabClient OrderBySlugDescending()

Returns

TabClient

PostAsync(Tab, CancellationToken)

Creates a new Tab resource asynchronously.

public Task<TabResponse> PostAsync(Tab resource, CancellationToken cancellationToken = default)

Parameters

resource Tab

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A 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

document JsonApiDocument<TabResource>

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

cancellationToken CancellationToken

A 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

value string

Returns

TabClient

WhereSequence(int)

Query response items by the Sequence attribute.

public TabClient WhereSequence(int value)

Parameters

value int

Returns

TabClient

WhereSlug(string)

Query response items by the Slug attribute.

public TabClient WhereSlug(string value)

Parameters

value string

Returns

TabClient

WithId(string)

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

public TabClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

TabClient

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