Table of Contents

Class Event

Namespace
Crews.PlanningCenter.Api.Calendar.V2021_07_20
Assembly
Crews.PlanningCenter.Api.dll

Attributes for the Event resource.

public record Event : IEquatable<Event>
Inheritance
Event
Implements
Inherited Members

Constructors

Event()

public Event()

Event(Event)

protected Event(Event original)

Parameters

original Event

Properties

ApprovalStatus

Possible values:
- A: approved.
- P: pending.
- R: rejected.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("approval_status")]
public string? ApprovalStatus { get; init; }

Property Value

string

CreatedAt

UTC time at which the event was created

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }

Property Value

DateTime?

Description

A rich text public-facing summary of the event

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

ImageUrl

Path to where the event image is stored

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("image_url")]
public string? ImageUrl { get; init; }

Property Value

string

Name

The name of the event

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; init; }

Property Value

string

PercentApproved

Calculated by taking the sum of the percent_approved for all
future ReservationBlocks and dividing that by the count of all future
ReservationBlocks.

If there are no future ReservationBlocks, returns 100

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("percent_approved")]
public int? PercentApproved { get; init; }

Property Value

int?

PercentRejected

Calculated by taking the sum of the percent_rejected for all
future ReservationBlocks and dividing that by the count of all future
ReservationBlocks.

If there are no future ReservationBlocks, returns 0

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("percent_rejected")]
public int? PercentRejected { get; init; }

Property Value

int?

RegistrationUrl

The registration URL for the event

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("registration_url")]
public string? RegistrationUrl { get; init; }

Property Value

string

Summary

A plain text public-facing summary of the event

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("summary")]
public string? Summary { get; init; }

Property Value

string

UpdatedAt

UTC time at which the event was updated

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }

Property Value

DateTime?

VisibleInChurchCenter

  • true indicates the event Church Center visibility is set to 'Published'
    - false indicates the event Church Center visibility is set to 'Hidden'
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("visible_in_church_center")]
public bool? VisibleInChurchCenter { get; init; }

Property Value

bool?

Methods

Equals(Event?)

public virtual bool Equals(Event? other)

Parameters

other Event

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Event?, Event?)

public static bool operator ==(Event? left, Event? right)

Parameters

left Event
right Event

Returns

bool

operator !=(Event?, Event?)

public static bool operator !=(Event? left, Event? right)

Parameters

left Event
right Event

Returns

bool