Class PaginatedEventTimeClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2020_04_08
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with EventTime collection resources.
public class PaginatedEventTimeClient : PaginatedResourceClient<EventTime, EventTimeResource, EventTimeCollectionResponse, EventTimeResponse>
- Inheritance
-
PaginatedResourceClient<EventTime, EventTimeResource, EventTimeCollectionResponse, EventTimeResponse>PaginatedEventTimeClient
- Inherited Members
Constructors
PaginatedEventTimeClient(HttpClient, Uri)
Client for interacting with EventTime collection resources.
public PaginatedEventTimeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of EventTime resources asynchronously.
public Task<EventTimeCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EventTimeCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of EventTime resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEvent()
Include related Event resources in the response.
public EventTimeClient IncludeEvent()
Returns
OrderByEndsAt()
Sort response items by the EndsAt attribute.
public EventTimeClient OrderByEndsAt()
Returns
OrderByEndsAtDescending()
Sort response items by the EndsAt attribute. Use reverse order.
public EventTimeClient OrderByEndsAtDescending()
Returns
OrderByStartsAt()
Sort response items by the StartsAt attribute.
public EventTimeClient OrderByStartsAt()
Returns
OrderByStartsAtDescending()
Sort response items by the StartsAt attribute. Use reverse order.
public EventTimeClient OrderByStartsAtDescending()
Returns
WhereEndsAt(DateTime)
Query response items by the EndsAt attribute.
public EventTimeClient WhereEndsAt(DateTime value)
Parameters
valueDateTime
Returns
WhereName(DateTime)
Query response items by the Name attribute.
public EventTimeClient WhereName(DateTime value)
Parameters
valueDateTime
Returns
WhereStartsAt(DateTime)
Query response items by the StartsAt attribute.
public EventTimeClient WhereStartsAt(DateTime value)
Parameters
valueDateTime
Returns
WhereVisibleOnKiosks(bool)
Query response items by the VisibleOnKiosks attribute.
public EventTimeClient WhereVisibleOnKiosks(bool value)
Parameters
valuebool
Returns
WhereVisibleOnWidgetAndIcal(bool)
Query response items by the VisibleOnWidgetAndIcal attribute.
public EventTimeClient WhereVisibleOnWidgetAndIcal(bool value)
Parameters
valuebool