Class EventClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2020_04_08
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Event resource.
public class EventClient : SingletonResourceClient<Event, EventResource, EventResponse>
- Inheritance
-
EventClient
- Inherited Members
Constructors
EventClient(HttpClient, Uri)
Client for interacting with the Event resource.
public EventClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Attachments
Associated Attachments.
public PaginatedAttachmentClient Attachments { get; }
Property Value
Conflicts
Associated Conflicts.
public PaginatedConflictClient Conflicts { get; }
Property Value
EventConnections
Associated EventConnections.
public PaginatedEventConnectionClient EventConnections { get; }
Property Value
EventInstances
Associated EventInstances.
public PaginatedEventInstanceClient EventInstances { get; }
Property Value
EventResourceRequests
Associated EventResourceRequests.
public PaginatedEventResourceRequestClient EventResourceRequests { get; }
Property Value
Feed
Associated Feed.
public FeedClient Feed { get; }
Property Value
Owner
Associated Owner.
public PersonClient Owner { get; }
Property Value
ResourceBookings
Associated ResourceBookings.
public PaginatedResourceBookingClient ResourceBookings { get; }
Property Value
Tags
Associated Tags.
public PaginatedTagClient Tags { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Event resource asynchronously.
public Task<EventResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EventResponse>
A task representing the asynchronous operation, containing the Event resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeAttachments()
Include related Attachments resources in the response.
public EventClient IncludeAttachments()
Returns
IncludeFeed()
Include related Feed resources in the response.
public EventClient IncludeFeed()
Returns
IncludeOwner()
Include related Owner resources in the response.
public EventClient IncludeOwner()
Returns
IncludeTags()
Include related Tags resources in the response.
public EventClient IncludeTags()