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
httpClientHttpClienturiUri
Properties
ResolvedBy
Associated ResolvedBy.
public PersonClient ResolvedBy { get; }
Property Value
Resource
Associated Resource.
public ResourceClient Resource { get; }
Property Value
Winner
Associated Winner.
public EventClient Winner { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Conflict resource asynchronously.
public Task<ConflictResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
IncludeResource()
Include related Resource resources in the response.
public ConflictClient IncludeResource()
Returns
IncludeWinner()
Include related Winner resources in the response.
public ConflictClient IncludeWinner()