Table of Contents

Class PaginatedPlanNoteClient

Namespace
Crews.PlanningCenter.Api.Services.V2018_08_01
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with PlanNote collection resources.

public class PaginatedPlanNoteClient : PaginatedResourceClient<PlanNote, PlanNoteResource, PlanNoteCollectionResponse, PlanNoteResponse>
Inheritance
PaginatedPlanNoteClient
Inherited Members

Constructors

PaginatedPlanNoteClient(HttpClient, Uri)

Client for interacting with PlanNote collection resources.

public PaginatedPlanNoteClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of PlanNote resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PlanNoteCollectionResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludePlanNoteCategory()

Include related PlanNoteCategory resources in the response.

public PlanNoteClient IncludePlanNoteCategory()

Returns

PlanNoteClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public PlanNoteClient OrderByCreatedAt()

Returns

PlanNoteClient

OrderByCreatedAtDescending()

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

public PlanNoteClient OrderByCreatedAtDescending()

Returns

PlanNoteClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public PlanNoteClient OrderByUpdatedAt()

Returns

PlanNoteClient

OrderByUpdatedAtDescending()

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

public PlanNoteClient OrderByUpdatedAtDescending()

Returns

PlanNoteClient

PostAsync(PlanNote, CancellationToken)

Creates a new PlanNote resource asynchronously.

public Task<PlanNoteResponse> PostAsync(PlanNote resource, CancellationToken cancellationToken = default)

Parameters

resource PlanNote

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PlanNoteResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<PlanNoteResource>, CancellationToken)

Creates a new PlanNote resource asynchronously.

public Task<PlanNoteResponse> PostAsync(JsonApiDocument<PlanNoteResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<PlanNoteResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PlanNoteResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public PlanNoteClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

PlanNoteClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public PlanNoteClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

PlanNoteClient

WithId(string)

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

public PlanNoteClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

PlanNoteClient

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