Class PaginatedMessageClient
- Namespace
- Crews.PlanningCenter.Api.People.V2023_03_21
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with Message collection resources.
public class PaginatedMessageClient : PaginatedResourceClient<Message, MessageResource, MessageCollectionResponse, MessageResponse>
- Inheritance
-
PaginatedMessageClient
- Inherited Members
Constructors
PaginatedMessageClient(HttpClient, Uri)
Client for interacting with Message collection resources.
public PaginatedMessageClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of Message resources asynchronously.
public Task<MessageCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<MessageCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of Message resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeMessageGroup()
Include related MessageGroup resources in the response.
public MessageClient IncludeMessageGroup()
Returns
IncludeTo()
Include related To resources in the response.
public MessageClient IncludeTo()
Returns
OrderByAppName()
Sort response items by the AppName attribute.
public MessageClient OrderByAppName()
Returns
OrderByAppNameDescending()
Sort response items by the AppName attribute. Use reverse order.
public MessageClient OrderByAppNameDescending()
Returns
OrderByBouncedAt()
Sort response items by the BouncedAt attribute.
public MessageClient OrderByBouncedAt()
Returns
OrderByBouncedAtDescending()
Sort response items by the BouncedAt attribute. Use reverse order.
public MessageClient OrderByBouncedAtDescending()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public MessageClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public MessageClient OrderByCreatedAtDescending()
Returns
OrderByDeliveryStatus()
Sort response items by the DeliveryStatus attribute.
public MessageClient OrderByDeliveryStatus()
Returns
OrderByDeliveryStatusDescending()
Sort response items by the DeliveryStatus attribute. Use reverse order.
public MessageClient OrderByDeliveryStatusDescending()
Returns
OrderByFile()
Sort response items by the File attribute.
public MessageClient OrderByFile()
Returns
OrderByFileDescending()
Sort response items by the File attribute. Use reverse order.
public MessageClient OrderByFileDescending()
Returns
OrderByFromAddress()
Sort response items by the FromAddress attribute.
public MessageClient OrderByFromAddress()
Returns
OrderByFromAddressDescending()
Sort response items by the FromAddress attribute. Use reverse order.
public MessageClient OrderByFromAddressDescending()
Returns
OrderByFromName()
Sort response items by the FromName attribute.
public MessageClient OrderByFromName()
Returns
OrderByFromNameDescending()
Sort response items by the FromName attribute. Use reverse order.
public MessageClient OrderByFromNameDescending()
Returns
OrderByKind()
Sort response items by the Kind attribute.
public MessageClient OrderByKind()
Returns
OrderByKindDescending()
Sort response items by the Kind attribute. Use reverse order.
public MessageClient OrderByKindDescending()
Returns
OrderByRejectReason()
Sort response items by the RejectReason attribute.
public MessageClient OrderByRejectReason()
Returns
OrderByRejectReasonDescending()
Sort response items by the RejectReason attribute. Use reverse order.
public MessageClient OrderByRejectReasonDescending()
Returns
OrderByRejectionNotificationSentAt()
Sort response items by the RejectionNotificationSentAt attribute.
public MessageClient OrderByRejectionNotificationSentAt()
Returns
OrderByRejectionNotificationSentAtDescending()
Sort response items by the RejectionNotificationSentAt attribute. Use reverse order.
public MessageClient OrderByRejectionNotificationSentAtDescending()
Returns
OrderBySentAt()
Sort response items by the SentAt attribute.
public MessageClient OrderBySentAt()
Returns
OrderBySentAtDescending()
Sort response items by the SentAt attribute. Use reverse order.
public MessageClient OrderBySentAtDescending()
Returns
OrderBySubject()
Sort response items by the Subject attribute.
public MessageClient OrderBySubject()
Returns
OrderBySubjectDescending()
Sort response items by the Subject attribute. Use reverse order.
public MessageClient OrderBySubjectDescending()
Returns
OrderByToAddresses()
Sort response items by the ToAddresses attribute.
public MessageClient OrderByToAddresses()
Returns
OrderByToAddressesDescending()
Sort response items by the ToAddresses attribute. Use reverse order.
public MessageClient OrderByToAddressesDescending()
Returns
WhereAppName(string)
Query response items by the AppName attribute.
public MessageClient WhereAppName(string value)
Parameters
valuestring
Returns
WhereBouncedAt(DateTime)
Query response items by the BouncedAt attribute.
public MessageClient WhereBouncedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public MessageClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereDeliveryStatus(string)
Query response items by the DeliveryStatus attribute.
public MessageClient WhereDeliveryStatus(string value)
Parameters
valuestring
Returns
WhereFile(string)
Query response items by the File attribute.
public MessageClient WhereFile(string value)
Parameters
valuestring
Returns
WhereFromAddress(string)
Query response items by the FromAddress attribute.
public MessageClient WhereFromAddress(string value)
Parameters
valuestring
Returns
WhereKind(string)
Query response items by the Kind attribute.
public MessageClient WhereKind(string value)
Parameters
valuestring
Returns
WhereRejectReason(string)
Query response items by the RejectReason attribute.
public MessageClient WhereRejectReason(string value)
Parameters
valuestring
Returns
WhereRejectionNotificationSentAt(DateTime)
Query response items by the RejectionNotificationSentAt attribute.
public MessageClient WhereRejectionNotificationSentAt(DateTime value)
Parameters
valueDateTime
Returns
WhereSentAt(DateTime)
Query response items by the SentAt attribute.
public MessageClient WhereSentAt(DateTime value)
Parameters
valueDateTime
Returns
WhereSubject(string)
Query response items by the Subject attribute.
public MessageClient WhereSubject(string value)
Parameters
valuestring
Returns
WhereToAddresses(string)
Query response items by the ToAddresses attribute.
public MessageClient WhereToAddresses(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a Message client for a specific resource ID.
public MessageClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- MessageClient
A new instance of the resource client for the specified resource ID.