Class PaginatedResourceBookingClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2022_07_07
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with ResourceBooking collection resources.
public class PaginatedResourceBookingClient : PaginatedResourceClient<ResourceBooking, ResourceBookingResource, ResourceBookingCollectionResponse, ResourceBookingResponse>
- Inheritance
-
PaginatedResourceClient<ResourceBooking, ResourceBookingResource, ResourceBookingCollectionResponse, ResourceBookingResponse>PaginatedResourceBookingClient
- Inherited Members
Constructors
PaginatedResourceBookingClient(HttpClient, Uri)
Client for interacting with ResourceBooking collection resources.
public PaginatedResourceBookingClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of ResourceBooking resources asynchronously.
public Task<ResourceBookingCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
IncludeEventResourceRequest()
Include related EventResourceRequest resources in the response.
public ResourceBookingClient IncludeEventResourceRequest()
Returns
IncludeResource()
Include related Resource resources in the response.
public ResourceBookingClient IncludeResource()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public ResourceBookingClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public ResourceBookingClient OrderByCreatedAtDescending()
Returns
OrderByEndsAt()
Sort response items by the EndsAt attribute.
public ResourceBookingClient OrderByEndsAt()
Returns
OrderByEndsAtDescending()
Sort response items by the EndsAt attribute. Use reverse order.
public ResourceBookingClient OrderByEndsAtDescending()
Returns
OrderByStartsAt()
Sort response items by the StartsAt attribute.
public ResourceBookingClient OrderByStartsAt()
Returns
OrderByStartsAtDescending()
Sort response items by the StartsAt attribute. Use reverse order.
public ResourceBookingClient OrderByStartsAtDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public ResourceBookingClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public ResourceBookingClient OrderByUpdatedAtDescending()
Returns
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public ResourceBookingClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereEndsAt(DateTime)
Query response items by the EndsAt attribute.
public ResourceBookingClient WhereEndsAt(DateTime value)
Parameters
valueDateTime
Returns
WhereStartsAt(DateTime)
Query response items by the StartsAt attribute.
public ResourceBookingClient WhereStartsAt(DateTime value)
Parameters
valueDateTime
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public ResourceBookingClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a ResourceBooking client for a specific resource ID.
public ResourceBookingClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- ResourceBookingClient
A new instance of the resource client for the specified resource ID.