Table of Contents

Class JobStatusClient

Namespace
Crews.PlanningCenter.Api.Calendar.V2021_07_20
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the JobStatus resource.

public class JobStatusClient : SingletonResourceClient<JobStatus, JobStatusResource, JobStatusResponse>
Inheritance
JobStatusClient
Inherited Members

Constructors

JobStatusClient(HttpClient, Uri)

Client for interacting with the JobStatus resource.

public JobStatusClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches the JobStatus resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<JobStatusResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.