Table of Contents

Class PaginatedResourceBookingClient

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

Client for interacting with ResourceBooking collection resources.

public class PaginatedResourceBookingClient : PaginatedResourceClient<ResourceBooking, ResourceBookingResource, ResourceBookingCollectionResponse, ResourceBookingResponse>
Inheritance
PaginatedResourceBookingClient
Inherited Members

Constructors

PaginatedResourceBookingClient(HttpClient, Uri)

Client for interacting with ResourceBooking collection resources.

public PaginatedResourceBookingClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of ResourceBooking resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ResourceBookingCollectionResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeEventInstance()

Include related EventInstance resources in the response.

public ResourceBookingClient IncludeEventInstance()

Returns

ResourceBookingClient

IncludeEventResourceRequest()

Include related EventResourceRequest resources in the response.

public ResourceBookingClient IncludeEventResourceRequest()

Returns

ResourceBookingClient

IncludeResource()

Include related Resource resources in the response.

public ResourceBookingClient IncludeResource()

Returns

ResourceBookingClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public ResourceBookingClient OrderByCreatedAt()

Returns

ResourceBookingClient

OrderByCreatedAtDescending()

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

public ResourceBookingClient OrderByCreatedAtDescending()

Returns

ResourceBookingClient

OrderByEndsAt()

Sort response items by the EndsAt attribute.

public ResourceBookingClient OrderByEndsAt()

Returns

ResourceBookingClient

OrderByEndsAtDescending()

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

public ResourceBookingClient OrderByEndsAtDescending()

Returns

ResourceBookingClient

OrderByStartsAt()

Sort response items by the StartsAt attribute.

public ResourceBookingClient OrderByStartsAt()

Returns

ResourceBookingClient

OrderByStartsAtDescending()

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

public ResourceBookingClient OrderByStartsAtDescending()

Returns

ResourceBookingClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public ResourceBookingClient OrderByUpdatedAt()

Returns

ResourceBookingClient

OrderByUpdatedAtDescending()

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

public ResourceBookingClient OrderByUpdatedAtDescending()

Returns

ResourceBookingClient

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public ResourceBookingClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

ResourceBookingClient

WhereEndsAt(DateTime)

Query response items by the EndsAt attribute.

public ResourceBookingClient WhereEndsAt(DateTime value)

Parameters

value DateTime

Returns

ResourceBookingClient

WhereStartsAt(DateTime)

Query response items by the StartsAt attribute.

public ResourceBookingClient WhereStartsAt(DateTime value)

Parameters

value DateTime

Returns

ResourceBookingClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public ResourceBookingClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

ResourceBookingClient

WithId(string)

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

public ResourceBookingClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

ResourceBookingClient

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