Table of Contents

Class MessageGroupClient

Namespace
Crews.PlanningCenter.Api.People.V2022_01_28
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

httpClient HttpClient
uri Uri

Properties

App

Associated App.

public AppClient App { get; }

Property Value

AppClient

From

Associated From.

public PersonClient From { get; }

Property Value

PersonClient

Messages

Associated Messages.

public PaginatedMessageClient Messages { get; }

Property Value

PaginatedMessageClient

Methods

GetAsync(CancellationToken)

Fetches the MessageGroup resource asynchronously.

public Task<MessageGroupResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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

MessageGroupClient

IncludeFrom()

Include related From resources in the response.

public MessageGroupClient IncludeFrom()

Returns

MessageGroupClient

IncludeMessages()

Include related Messages resources in the response.

public MessageGroupClient IncludeMessages()

Returns

MessageGroupClient