Class Event
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2018_08_01
- 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
originalEvent
Properties
ApprovalStatus
Possible values:
- A: approved.
- P: pending.
- R: rejected.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("approval_status")]
public string? ApprovalStatus { get; init; }
Property Value
ArchivedAt
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("archived_at")]
public DateTime? ArchivedAt { get; init; }
Property Value
CreatedAt
UTC time at which the event was created
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
Details
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("details")]
public string? Details { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
ImageUrl
Path to where the event image is stored
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("image_url")]
public string? ImageUrl { get; init; }
Property Value
Name
The name of the event
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
PercentApproved
Calculated by taking the sum of the percent_approved for all
future ReservationBlocks and dividing that by the count of all futureReservationBlocks.
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 futureReservationBlocks.
If there are no future ReservationBlocks, returns 0
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("percent_rejected")]
public int? PercentRejected { get; init; }
Property Value
- int?
UpdatedAt
UTC time at which the event was updated
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }
Property Value
VisibleInChurchCenter
trueindicates the event Church Center visibility is set to 'Published'
-falseindicates 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
otherEvent
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Event?, Event?)
public static bool operator ==(Event? left, Event? right)
Parameters
Returns
operator !=(Event?, Event?)
public static bool operator !=(Event? left, Event? right)