Class ListClient
- Namespace
- Crews.PlanningCenter.Api.People.V2019_01_14
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the List resource.
public class ListClient : SingletonResourceClient<List, ListResource, ListResponse>
- Inheritance
-
ListClient
- Inherited Members
Constructors
ListClient(HttpClient, Uri)
Client for interacting with the List resource.
public ListClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Campus
Associated Campus.
public PaginatedCampusClient Campus { get; }
Property Value
Category
Associated Category.
public ListCategoryClient Category { get; }
Property Value
CreatedBy
Associated CreatedBy.
public PersonClient CreatedBy { get; }
Property Value
ListResults
Associated ListResults.
public PaginatedListResultClient ListResults { get; }
Property Value
MailchimpSyncStatus
Associated MailchimpSyncStatus.
public PaginatedMailchimpSyncStatusClient MailchimpSyncStatus { get; }
Property Value
Owner
Associated Owner.
[Obsolete("This endpoint is deprecated and may be removed in a future release.")]
public PersonClient Owner { get; }
Property Value
People
Associated People.
public PaginatedPersonClient People { get; }
Property Value
Rules
Associated Rules.
public PaginatedRuleClient Rules { get; }
Property Value
Shares
Associated Shares.
public PaginatedListShareClient Shares { get; }
Property Value
Star
Associated Star.
public ListStarClient Star { get; }
Property Value
UpdatedBy
Associated UpdatedBy.
public PersonClient UpdatedBy { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the List resource asynchronously.
public Task<ListResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListResponse>
A task representing the asynchronous operation, containing the List resource.
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
IncludeOwner()
Include related Owner resources in the response.
public ListClient IncludeOwner()
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
MailchimpSyncAsync(CancellationToken)
Sync a List to Mailchimp. (Mailchimp integration must already be configured for this organization.)
public Task MailchimpSyncAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
RunAsync(CancellationToken)
Run a List to update its results.
public Task RunAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken