Class PaginatedCustomSenderClient
- Namespace
- Crews.PlanningCenter.Api.People.V2024_09_12
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with CustomSender collection resources.
public class PaginatedCustomSenderClient : PaginatedResourceClient<CustomSender, CustomSenderResource, CustomSenderCollectionResponse, CustomSenderResponse>
- Inheritance
-
PaginatedResourceClient<CustomSender, CustomSenderResource, CustomSenderCollectionResponse, CustomSenderResponse>PaginatedCustomSenderClient
- Inherited Members
Constructors
PaginatedCustomSenderClient(HttpClient, Uri)
Client for interacting with CustomSender collection resources.
public PaginatedCustomSenderClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedCustomSenderClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedCustomSenderClient
The current PaginatedCustomSenderClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedCustomSenderClient ClearParameters()
Returns
- PaginatedCustomSenderClient
The current PaginatedCustomSenderClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedCustomSenderClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedCustomSenderClient
The current PaginatedCustomSenderClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
GetAsync(CancellationToken)
Fetches a paginated list of CustomSender resources asynchronously.
public Task<CustomSenderCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<CustomSenderCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of CustomSender resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
Offset(int)
Sets the item offset in the paginated response.
public PaginatedCustomSenderClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedCustomSenderClient
The current PaginatedCustomSenderClient instance.
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public CustomSenderClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public CustomSenderClient OrderByCreatedAtDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public CustomSenderClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public CustomSenderClient OrderByNameDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public CustomSenderClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public CustomSenderClient OrderByUpdatedAtDescending()
Returns
OrderByVerificationRequestedAt()
Sort response items by the VerificationRequestedAt attribute.
public CustomSenderClient OrderByVerificationRequestedAt()
Returns
OrderByVerificationRequestedAtDescending()
Sort response items by the VerificationRequestedAt attribute. Use reverse order.
public CustomSenderClient OrderByVerificationRequestedAtDescending()
Returns
OrderByVerifiedAt()
Sort response items by the VerifiedAt attribute.
public CustomSenderClient OrderByVerifiedAt()
Returns
OrderByVerifiedAtDescending()
Sort response items by the VerifiedAt attribute. Use reverse order.
public CustomSenderClient OrderByVerifiedAtDescending()
Returns
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedCustomSenderClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedCustomSenderClient
The current PaginatedCustomSenderClient instance.
WithId(string)
Creates a new instance of a CustomSender client for a specific resource ID.
public CustomSenderClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- CustomSenderClient
A new instance of the resource client for the specified resource ID.