Table of Contents

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

httpClient HttpClient
uri Uri

Properties

Attendances

Associated Attendances.

public PaginatedAttendanceClient Attendances { get; }

Property Value

PaginatedAttendanceClient

Group

Associated Group.

public GroupClient Group { get; }

Property Value

GroupClient

Location

Associated Location.

public LocationClient Location { get; }

Property Value

LocationClient

Notes

Associated Notes.

public PaginatedEventNoteClient Notes { get; }

Property Value

PaginatedEventNoteClient

Rsvps

Associated Rsvps.

public PaginatedRsvpClient Rsvps { get; }

Property Value

PaginatedRsvpClient

Methods

GetAsync(CancellationToken)

Fetches the Event resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A 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

EventClient

IncludeLocation()

Include related Location resources in the response.

public EventClient IncludeLocation()

Returns

EventClient