Table of Contents

Class PaginatedRuleClient

Namespace
Crews.PlanningCenter.Api.People.V2020_04_06
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with Rule collection resources.

public class PaginatedRuleClient : PaginatedResourceClient<Rule, RuleResource, RuleCollectionResponse, RuleResponse>
Inheritance
PaginatedRuleClient
Inherited Members

Constructors

PaginatedRuleClient(HttpClient, Uri)

Client for interacting with Rule collection resources.

public PaginatedRuleClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of Rule resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<RuleCollectionResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeConditions()

Include related Conditions resources in the response.

public RuleClient IncludeConditions()

Returns

RuleClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public RuleClient OrderByCreatedAt()

Returns

RuleClient

OrderByCreatedAtDescending()

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

public RuleClient OrderByCreatedAtDescending()

Returns

RuleClient

OrderBySubset()

Sort response items by the Subset attribute.

public RuleClient OrderBySubset()

Returns

RuleClient

OrderBySubsetDescending()

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

public RuleClient OrderBySubsetDescending()

Returns

RuleClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public RuleClient OrderByUpdatedAt()

Returns

RuleClient

OrderByUpdatedAtDescending()

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

public RuleClient OrderByUpdatedAtDescending()

Returns

RuleClient

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public RuleClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

RuleClient

WhereSubset(string)

Query response items by the Subset attribute.

public RuleClient WhereSubset(string value)

Parameters

value string

Returns

RuleClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public RuleClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

RuleClient

WithId(string)

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

public RuleClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

RuleClient

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