Class PaginatedListClient
- Namespace
- Crews.PlanningCenter.Api.People.V2021_08_17
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with List collection resources.
public class PaginatedListClient : PaginatedResourceClient<List, ListResource, ListCollectionResponse, ListResponse>
- Inheritance
-
PaginatedListClient
- Inherited Members
Constructors
PaginatedListClient(HttpClient, Uri)
Client for interacting with List collection resources.
public PaginatedListClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of List resources asynchronously.
public Task<ListCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of List resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeCampus()
Include related Campus resources in the response.
public ListClient IncludeCampus()
Returns
IncludeCategory()
Include related Category resources in the response.
public ListClient IncludeCategory()
Returns
IncludeCreatedBy()
Include related CreatedBy resources in the response.
public ListClient IncludeCreatedBy()
Returns
IncludeMailchimpSyncStatus()
Include related MailchimpSyncStatus resources in the response.
public ListClient IncludeMailchimpSyncStatus()
Returns
IncludePeople()
Include related People resources in the response.
public ListClient IncludePeople()
Returns
IncludeRules()
Include related Rules resources in the response.
public ListClient IncludeRules()
Returns
IncludeShares()
Include related Shares resources in the response.
public ListClient IncludeShares()
Returns
IncludeUpdatedBy()
Include related UpdatedBy resources in the response.
public ListClient IncludeUpdatedBy()
Returns
OrderByBatchCompletedAt()
Sort response items by the BatchCompletedAt attribute.
public ListClient OrderByBatchCompletedAt()
Returns
OrderByBatchCompletedAtDescending()
Sort response items by the BatchCompletedAt attribute. Use reverse order.
public ListClient OrderByBatchCompletedAtDescending()
Returns
OrderByCampusId()
Sort response items by the CampusId attribute.
public ListClient OrderByCampusId()
Returns
OrderByCampusIdDescending()
Sort response items by the CampusId attribute. Use reverse order.
public ListClient OrderByCampusIdDescending()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public ListClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public ListClient OrderByCreatedAtDescending()
Returns
OrderByListCategoriesName()
Sort response items by the ListCategories.Name attribute.
public ListClient OrderByListCategoriesName()
Returns
OrderByListCategoriesNameDescending()
Sort response items by the ListCategories.Name attribute. Use reverse order.
public ListClient OrderByListCategoriesNameDescending()
Returns
OrderByListCategoryId()
Sort response items by the ListCategoryId attribute.
public ListClient OrderByListCategoryId()
Returns
OrderByListCategoryIdDescending()
Sort response items by the ListCategoryId attribute. Use reverse order.
public ListClient OrderByListCategoryIdDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public ListClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public ListClient OrderByNameDescending()
Returns
OrderByNameOrDescription()
Sort response items by the NameOrDescription attribute.
public ListClient OrderByNameOrDescription()
Returns
OrderByNameOrDescriptionDescending()
Sort response items by the NameOrDescription attribute. Use reverse order.
public ListClient OrderByNameOrDescriptionDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public ListClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public ListClient OrderByUpdatedAtDescending()
Returns
WhereBatchCompletedAt(DateTime)
Query response items by the BatchCompletedAt attribute.
public ListClient WhereBatchCompletedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public ListClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereId(string)
Query response items by the Id attribute.
public ListClient WhereId(string value)
Parameters
valuestring
Returns
WhereName(string)
Query response items by the Name attribute.
public ListClient WhereName(string value)
Parameters
valuestring
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public ListClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a List client for a specific resource ID.
public ListClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- ListClient
A new instance of the resource client for the specified resource ID.