Class MessageGroupClient
- Namespace
- Crews.PlanningCenter.Api.People.V2022_01_05
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the MessageGroup resource.
public class MessageGroupClient : SingletonResourceClient<MessageGroup, MessageGroupResource, MessageGroupResponse>
- Inheritance
-
MessageGroupClient
- Inherited Members
Constructors
MessageGroupClient(HttpClient, Uri)
Client for interacting with the MessageGroup resource.
public MessageGroupClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
App
Associated App.
public AppClient App { get; }
Property Value
From
Associated From.
public PersonClient From { get; }
Property Value
Messages
Associated Messages.
public PaginatedMessageClient Messages { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the MessageGroup resource asynchronously.
public Task<MessageGroupResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<MessageGroupResponse>
A task representing the asynchronous operation, containing the MessageGroup resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeApp()
Include related App resources in the response.
public MessageGroupClient IncludeApp()
Returns
IncludeFrom()
Include related From resources in the response.
public MessageGroupClient IncludeFrom()
Returns
IncludeMessages()
Include related Messages resources in the response.
public MessageGroupClient IncludeMessages()