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
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of PlanNote resources asynchronously.
public Task<PlanNoteCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public PlanNoteClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public PlanNoteClient OrderByCreatedAtDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public PlanNoteClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public PlanNoteClient OrderByUpdatedAtDescending()
Returns
PostAsync(PlanNote, CancellationToken)
Creates a new PlanNote resource asynchronously.
public Task<PlanNoteResponse> PostAsync(PlanNote resource, CancellationToken cancellationToken = default)
Parameters
resourcePlanNoteThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA 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
documentJsonApiDocument<PlanNoteResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA 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
valueDateTime
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public PlanNoteClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a PlanNote client for a specific resource ID.
public PlanNoteClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- PlanNoteClient
A new instance of the resource client for the specified resource ID.