Table of Contents

Class ConflictClient

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

Client for interacting with the Conflict resource.

public class ConflictClient : SingletonResourceClient<Conflict, ConflictResource, ConflictResponse>
Inheritance
ConflictClient
Inherited Members

Constructors

ConflictClient(HttpClient, Uri)

Client for interacting with the Conflict resource.

public ConflictClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

ResolvedBy

Associated ResolvedBy.

public PersonClient ResolvedBy { get; }

Property Value

PersonClient

Resource

Associated Resource.

public ResourceClient Resource { get; }

Property Value

ResourceClient

Winner

Associated Winner.

public EventClient Winner { get; }

Property Value

EventClient

Methods

GetAsync(CancellationToken)

Fetches the Conflict resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ConflictResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeResolvedBy()

Include related ResolvedBy resources in the response.

public ConflictClient IncludeResolvedBy()

Returns

ConflictClient

IncludeResource()

Include related Resource resources in the response.

public ConflictClient IncludeResource()

Returns

ConflictClient

IncludeWinner()

Include related Winner resources in the response.

public ConflictClient IncludeWinner()

Returns

ConflictClient