Table of Contents

Class PaginatedResourceQuestionClient

Namespace
Crews.PlanningCenter.Api.Calendar.V2018_08_01
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with ResourceQuestion collection resources.

public class PaginatedResourceQuestionClient : PaginatedResourceClient<ResourceQuestion, ResourceQuestionResource, ResourceQuestionCollectionResponse, ResourceQuestionResponse>
Inheritance
PaginatedResourceQuestionClient
Inherited Members

Constructors

PaginatedResourceQuestionClient(HttpClient, Uri)

Client for interacting with ResourceQuestion collection resources.

public PaginatedResourceQuestionClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public PaginatedResourceQuestionClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

PaginatedResourceQuestionClient

The current PaginatedResourceQuestionClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public PaginatedResourceQuestionClient ClearParameters()

Returns

PaginatedResourceQuestionClient

The current PaginatedResourceQuestionClient instance.

Filter(string)

Adds a filter query parameter to the request.

public PaginatedResourceQuestionClient Filter(string filter)

Parameters

filter string

The filter criteria.

Returns

PaginatedResourceQuestionClient

The current PaginatedResourceQuestionClient instance.

Remarks

See Planning Center API documentation for details on supported filter values for this resource.

GetAsync(CancellationToken)

Fetches a paginated list of ResourceQuestion resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ResourceQuestionCollectionResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

Offset(int)

Sets the item offset in the paginated response.

public PaginatedResourceQuestionClient Offset(int count)

Parameters

count int

The number of items to skip.

Returns

PaginatedResourceQuestionClient

The current PaginatedResourceQuestionClient instance.

PerPage(int)

Sets the number of items to be returned per page in the paginated response.

public PaginatedResourceQuestionClient PerPage(int count)

Parameters

count int

The number of items to be returned per page.

Returns

PaginatedResourceQuestionClient

The current PaginatedResourceQuestionClient instance.

PostAsync(ResourceQuestion, CancellationToken)

Creates a new ResourceQuestion resource asynchronously.

public Task<ResourceQuestionResponse> PostAsync(ResourceQuestion resource, CancellationToken cancellationToken = default)

Parameters

resource ResourceQuestion

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ResourceQuestionResponse>

A task representing the asynchronous operation, containing the created ResourceQuestion resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<ResourceQuestionResource>, CancellationToken)

Creates a new ResourceQuestion resource asynchronously.

public Task<ResourceQuestionResponse> PostAsync(JsonApiDocument<ResourceQuestionResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<ResourceQuestionResource>

The JSON:API document to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ResourceQuestionResponse>

A task representing the asynchronous operation, containing the created ResourceQuestion resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public ResourceQuestionClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

ResourceQuestionClient

WhereKind(string)

Query response items by the Kind attribute.

public ResourceQuestionClient WhereKind(string value)

Parameters

value string

Returns

ResourceQuestionClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public ResourceQuestionClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

ResourceQuestionClient

WithId(string)

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

public ResourceQuestionClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

ResourceQuestionClient

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