Class PaginatedRoomSetupClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2021_07_20
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with RoomSetup collection resources.
public class PaginatedRoomSetupClient : PaginatedResourceClient<RoomSetup, RoomSetupResource, RoomSetupCollectionResponse, RoomSetupResponse>
- Inheritance
-
PaginatedResourceClient<RoomSetup, RoomSetupResource, RoomSetupCollectionResponse, RoomSetupResponse>PaginatedRoomSetupClient
- Inherited Members
Constructors
PaginatedRoomSetupClient(HttpClient, Uri)
Client for interacting with RoomSetup collection resources.
public PaginatedRoomSetupClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of RoomSetup resources asynchronously.
public Task<RoomSetupCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<RoomSetupCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of RoomSetup resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeContainingResource()
Include related ContainingResource resources in the response.
public RoomSetupClient IncludeContainingResource()
Returns
IncludeResourceSuggestions()
Include related ResourceSuggestions resources in the response.
public RoomSetupClient IncludeResourceSuggestions()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public RoomSetupClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public RoomSetupClient OrderByCreatedAtDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public RoomSetupClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public RoomSetupClient OrderByNameDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public RoomSetupClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public RoomSetupClient OrderByUpdatedAtDescending()
Returns
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public RoomSetupClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereName(string)
Query response items by the Name attribute.
public RoomSetupClient WhereName(string value)
Parameters
valuestring
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public RoomSetupClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a RoomSetup client for a specific resource ID.
public RoomSetupClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- RoomSetupClient
A new instance of the resource client for the specified resource ID.