Table of Contents

Class EmergencyContactClient

Namespace
Crews.PlanningCenter.Api.Registrations.V2025_05_01
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the EmergencyContact resource.

public class EmergencyContactClient : SingletonResourceClient<EmergencyContact, EmergencyContactResource, EmergencyContactResponse>
Inheritance
EmergencyContactClient
Inherited Members

Constructors

EmergencyContactClient(HttpClient, Uri)

Client for interacting with the EmergencyContact resource.

public EmergencyContactClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches the EmergencyContact resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EmergencyContactResponse>

A task representing the asynchronous operation, containing the EmergencyContact resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.