Table of Contents

Class PaginatedListShareClient

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

Client for interacting with ListShare collection resources.

public class PaginatedListShareClient : PaginatedResourceClient<ListShare, ListShareResource, ListShareCollectionResponse, ListShareResponse>
Inheritance
PaginatedListShareClient
Inherited Members

Constructors

PaginatedListShareClient(HttpClient, Uri)

Client for interacting with ListShare collection resources.

public PaginatedListShareClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of ListShare resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ListShareCollectionResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludePerson()

Include related Person resources in the response.

public ListShareClient IncludePerson()

Returns

ListShareClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public ListShareClient OrderByCreatedAt()

Returns

ListShareClient

OrderByCreatedAtDescending()

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

public ListShareClient OrderByCreatedAtDescending()

Returns

ListShareClient

OrderByGroup()

Sort response items by the Group attribute.

public ListShareClient OrderByGroup()

Returns

ListShareClient

OrderByGroupDescending()

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

public ListShareClient OrderByGroupDescending()

Returns

ListShareClient

PostAsync(ListShare, CancellationToken)

Creates a new ListShare resource asynchronously.

public Task<ListShareResponse> PostAsync(ListShare resource, CancellationToken cancellationToken = default)

Parameters

resource ListShare

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ListShareResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<ListShareResource>, CancellationToken)

Creates a new ListShare resource asynchronously.

public Task<ListShareResponse> PostAsync(JsonApiDocument<ListShareResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<ListShareResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ListShareResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public ListShareClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

ListShareClient

WhereGroup(string)

Query response items by the Group attribute.

public ListShareClient WhereGroup(string value)

Parameters

value string

Returns

ListShareClient

WhereName(string)

Query response items by the Name attribute.

public ListShareClient WhereName(string value)

Parameters

value string

Returns

ListShareClient

WherePermission(string)

Query response items by the Permission attribute.

public ListShareClient WherePermission(string value)

Parameters

value string

Returns

ListShareClient

WithId(string)

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

public ListShareClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

ListShareClient

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