Class EventClient
- Namespace
- Crews.PlanningCenter.Api.Groups.V2023_07_10
- 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
Attendances
Associated Attendances.
public PaginatedAttendanceClient Attendances { get; }
Property Value
Group
Associated Group.
public GroupClient Group { get; }
Property Value
Location
Associated Location.
public LocationClient Location { get; }
Property Value
Notes
Associated Notes.
public PaginatedEventNoteClient Notes { get; }
Property Value
Rsvps
Associated Rsvps.
public PaginatedRsvpClient Rsvps { 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.
IncludeGroup()
Include related Group resources in the response.
public EventClient IncludeGroup()
Returns
IncludeLocation()
Include related Location resources in the response.
public EventClient IncludeLocation()