Class MessageClient
- Namespace
- Crews.PlanningCenter.Api.People.V2023_02_15
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Message resource.
public class MessageClient : SingletonResourceClient<Message, MessageResource, MessageResponse>
- Inheritance
-
MessageClient
- Inherited Members
Constructors
MessageClient(HttpClient, Uri)
Client for interacting with the Message resource.
public MessageClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
MessageGroup
Associated MessageGroup.
public MessageGroupClient MessageGroup { get; }
Property Value
To
Associated To.
public PersonClient To { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Message resource asynchronously.
public Task<MessageResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<MessageResponse>
A task representing the asynchronous operation, containing the Message resource.
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()