Class PaginatedNoteCategoryClient
- Namespace
- Crews.PlanningCenter.Api.People.V2020_07_22
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with NoteCategory collection resources.
public class PaginatedNoteCategoryClient : PaginatedResourceClient<NoteCategory, NoteCategoryResource, NoteCategoryCollectionResponse, NoteCategoryResponse>
- Inheritance
-
PaginatedResourceClient<NoteCategory, NoteCategoryResource, NoteCategoryCollectionResponse, NoteCategoryResponse>PaginatedNoteCategoryClient
- Inherited Members
Constructors
PaginatedNoteCategoryClient(HttpClient, Uri)
Client for interacting with NoteCategory collection resources.
public PaginatedNoteCategoryClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of NoteCategory resources asynchronously.
public Task<NoteCategoryCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of NoteCategory resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeShares()
Include related Shares resources in the response.
public NoteCategoryClient IncludeShares()
Returns
IncludeSubscribers()
Include related Subscribers resources in the response.
public NoteCategoryClient IncludeSubscribers()
Returns
IncludeSubscriptions()
Include related Subscriptions resources in the response.
public NoteCategoryClient IncludeSubscriptions()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public NoteCategoryClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public NoteCategoryClient OrderByCreatedAtDescending()
Returns
OrderByLocked()
Sort response items by the Locked attribute.
public NoteCategoryClient OrderByLocked()
Returns
OrderByLockedDescending()
Sort response items by the Locked attribute. Use reverse order.
public NoteCategoryClient OrderByLockedDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public NoteCategoryClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public NoteCategoryClient OrderByNameDescending()
Returns
OrderByOrganizationId()
Sort response items by the OrganizationId attribute.
public NoteCategoryClient OrderByOrganizationId()
Returns
OrderByOrganizationIdDescending()
Sort response items by the OrganizationId attribute. Use reverse order.
public NoteCategoryClient OrderByOrganizationIdDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public NoteCategoryClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public NoteCategoryClient OrderByUpdatedAtDescending()
Returns
PostAsync(NoteCategory, CancellationToken)
Creates a new NoteCategory resource asynchronously.
public Task<NoteCategoryResponse> PostAsync(NoteCategory resource, CancellationToken cancellationToken = default)
Parameters
resourceNoteCategoryThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryResponse>
A task representing the asynchronous operation, containing the created NoteCategory resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PostAsync(JsonApiDocument<NoteCategoryResource>, CancellationToken)
Creates a new NoteCategory resource asynchronously.
public Task<NoteCategoryResponse> PostAsync(JsonApiDocument<NoteCategoryResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<NoteCategoryResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryResponse>
A task representing the asynchronous operation, containing the created NoteCategory resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public NoteCategoryClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereLocked(bool)
Query response items by the Locked attribute.
public NoteCategoryClient WhereLocked(bool value)
Parameters
valuebool
Returns
WhereName(string)
Query response items by the Name attribute.
public NoteCategoryClient WhereName(string value)
Parameters
valuestring
Returns
WhereOrganizationId(string)
Query response items by the OrganizationId attribute.
public NoteCategoryClient WhereOrganizationId(string value)
Parameters
valuestring
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public NoteCategoryClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a NoteCategory client for a specific resource ID.
public NoteCategoryClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- NoteCategoryClient
A new instance of the resource client for the specified resource ID.