Table of Contents

Class MessageClient

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

httpClient HttpClient
uri Uri

Properties

MessageGroup

Associated MessageGroup.

public MessageGroupClient MessageGroup { get; }

Property Value

MessageGroupClient

To

Associated To.

public PersonClient To { get; }

Property Value

PersonClient

Methods

GetAsync(CancellationToken)

Fetches the Message resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A 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

MessageClient

IncludeTo()

Include related To resources in the response.

public MessageClient IncludeTo()

Returns

MessageClient