Class PaginatedEventInstanceClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2021_07_20
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with EventInstance collection resources.
public class PaginatedEventInstanceClient : PaginatedResourceClient<EventInstance, EventInstanceResource, EventInstanceCollectionResponse, EventInstanceResponse>
- Inheritance
-
PaginatedResourceClient<EventInstance, EventInstanceResource, EventInstanceCollectionResponse, EventInstanceResponse>PaginatedEventInstanceClient
- Inherited Members
Constructors
PaginatedEventInstanceClient(HttpClient, Uri)
Client for interacting with EventInstance collection resources.
public PaginatedEventInstanceClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedEventInstanceClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedEventInstanceClient
The current PaginatedEventInstanceClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedEventInstanceClient ClearParameters()
Returns
- PaginatedEventInstanceClient
The current PaginatedEventInstanceClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedEventInstanceClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedEventInstanceClient
The current PaginatedEventInstanceClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
GetAsync(CancellationToken)
Fetches a paginated list of EventInstance resources asynchronously.
public Task<EventInstanceCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EventInstanceCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of EventInstance resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEvent()
Include related Event resources in the response.
public EventInstanceClient IncludeEvent()
Returns
IncludeEventTimes()
Include related EventTimes resources in the response.
public EventInstanceClient IncludeEventTimes()
Returns
IncludeResourceBookings()
Include related ResourceBookings resources in the response.
public EventInstanceClient IncludeResourceBookings()
Returns
IncludeTags()
Include related Tags resources in the response.
public EventInstanceClient IncludeTags()
Returns
Offset(int)
Sets the item offset in the paginated response.
public PaginatedEventInstanceClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedEventInstanceClient
The current PaginatedEventInstanceClient instance.
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public EventInstanceClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public EventInstanceClient OrderByCreatedAtDescending()
Returns
OrderByEndsAt()
Sort response items by the EndsAt attribute.
public EventInstanceClient OrderByEndsAt()
Returns
OrderByEndsAtDescending()
Sort response items by the EndsAt attribute. Use reverse order.
public EventInstanceClient OrderByEndsAtDescending()
Returns
OrderByStartsAt()
Sort response items by the StartsAt attribute.
public EventInstanceClient OrderByStartsAt()
Returns
OrderByStartsAtDescending()
Sort response items by the StartsAt attribute. Use reverse order.
public EventInstanceClient OrderByStartsAtDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public EventInstanceClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public EventInstanceClient OrderByUpdatedAtDescending()
Returns
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedEventInstanceClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedEventInstanceClient
The current PaginatedEventInstanceClient instance.
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public EventInstanceClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereEndsAt(DateTime)
Query response items by the EndsAt attribute.
public EventInstanceClient WhereEndsAt(DateTime value)
Parameters
valueDateTime
Returns
WhereKind(string)
Query response items by the Kind attribute.
public EventInstanceClient WhereKind(string value)
Parameters
valuestring
Returns
WhereStartsAt(DateTime)
Query response items by the StartsAt attribute.
public EventInstanceClient WhereStartsAt(DateTime value)
Parameters
valueDateTime
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public EventInstanceClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a EventInstance client for a specific resource ID.
public EventInstanceClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- EventInstanceClient
A new instance of the resource client for the specified resource ID.