Class PaginatedRoomSetupClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2020_04_08
- 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
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedRoomSetupClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedRoomSetupClient
The current PaginatedRoomSetupClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedRoomSetupClient ClearParameters()
Returns
- PaginatedRoomSetupClient
The current PaginatedRoomSetupClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedRoomSetupClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedRoomSetupClient
The current PaginatedRoomSetupClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
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
Offset(int)
Sets the item offset in the paginated response.
public PaginatedRoomSetupClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedRoomSetupClient
The current PaginatedRoomSetupClient instance.
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
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedRoomSetupClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedRoomSetupClient
The current PaginatedRoomSetupClient instance.
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.