Table of Contents

Class PaginatedPlanTemplateClient

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

Client for interacting with PlanTemplate collection resources.

public class PaginatedPlanTemplateClient : PaginatedResourceClient<PlanTemplate, PlanTemplateResource, PlanTemplateCollectionResponse, PlanTemplateResponse>
Inheritance
PaginatedPlanTemplateClient
Inherited Members

Constructors

PaginatedPlanTemplateClient(HttpClient, Uri)

Client for interacting with PlanTemplate collection resources.

public PaginatedPlanTemplateClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of PlanTemplate resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PlanTemplateCollectionResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public PlanTemplateClient OrderByCreatedAt()

Returns

PlanTemplateClient

OrderByCreatedAtDescending()

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

public PlanTemplateClient OrderByCreatedAtDescending()

Returns

PlanTemplateClient

OrderByItemCount()

Sort response items by the ItemCount attribute.

public PlanTemplateClient OrderByItemCount()

Returns

PlanTemplateClient

OrderByItemCountDescending()

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

public PlanTemplateClient OrderByItemCountDescending()

Returns

PlanTemplateClient

OrderByName()

Sort response items by the Name attribute.

public PlanTemplateClient OrderByName()

Returns

PlanTemplateClient

OrderByNameDescending()

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

public PlanTemplateClient OrderByNameDescending()

Returns

PlanTemplateClient

OrderByNoteCount()

Sort response items by the NoteCount attribute.

public PlanTemplateClient OrderByNoteCount()

Returns

PlanTemplateClient

OrderByNoteCountDescending()

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

public PlanTemplateClient OrderByNoteCountDescending()

Returns

PlanTemplateClient

OrderByTeamCount()

Sort response items by the TeamCount attribute.

public PlanTemplateClient OrderByTeamCount()

Returns

PlanTemplateClient

OrderByTeamCountDescending()

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

public PlanTemplateClient OrderByTeamCountDescending()

Returns

PlanTemplateClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public PlanTemplateClient OrderByUpdatedAt()

Returns

PlanTemplateClient

OrderByUpdatedAtDescending()

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

public PlanTemplateClient OrderByUpdatedAtDescending()

Returns

PlanTemplateClient

WithId(string)

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

public PlanTemplateClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

PlanTemplateClient

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