Table of Contents

Class PaginatedItemNoteClient

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

Client for interacting with ItemNote collection resources.

public class PaginatedItemNoteClient : PaginatedResourceClient<ItemNote, ItemNoteResource, ItemNoteCollectionResponse, ItemNoteResponse>
Inheritance
PaginatedItemNoteClient
Inherited Members

Constructors

PaginatedItemNoteClient(HttpClient, Uri)

Client for interacting with ItemNote collection resources.

public PaginatedItemNoteClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of ItemNote resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ItemNoteCollectionResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeItemNoteCategory()

Include related ItemNoteCategory resources in the response.

public ItemNoteClient IncludeItemNoteCategory()

Returns

ItemNoteClient

PostAsync(ItemNote, CancellationToken)

Creates a new ItemNote resource asynchronously.

public Task<ItemNoteResponse> PostAsync(ItemNote resource, CancellationToken cancellationToken = default)

Parameters

resource ItemNote

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ItemNoteResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<ItemNoteResource>, CancellationToken)

Creates a new ItemNote resource asynchronously.

public Task<ItemNoteResponse> PostAsync(JsonApiDocument<ItemNoteResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<ItemNoteResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ItemNoteResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WithId(string)

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

public ItemNoteClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

ItemNoteClient

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