Class EventNoteClient
- Namespace
- Crews.PlanningCenter.Api.Groups.V2023_07_10
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the EventNote resource.
public class EventNoteClient : SingletonResourceClient<EventNote, EventNoteResource, EventNoteResponse>
- Inheritance
-
EventNoteClient
- Inherited Members
Constructors
EventNoteClient(HttpClient, Uri)
Client for interacting with the EventNote resource.
public EventNoteClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Owner
Associated Owner.
public OwnerClient Owner { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the EventNote resource asynchronously.
public Task<EventNoteResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EventNoteResponse>
A task representing the asynchronous operation, containing the EventNote resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeOwner()
Include related Owner resources in the response.
public EventNoteClient IncludeOwner()