Class EventInstance
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2021_07_20
- Assembly
- Crews.PlanningCenter.Api.dll
Attributes for the EventInstance resource.
public record EventInstance : IEquatable<EventInstance>
- Inheritance
-
EventInstance
- Implements
- Inherited Members
Constructors
EventInstance()
public EventInstance()
EventInstance(EventInstance)
protected EventInstance(EventInstance original)
Parameters
originalEventInstance
Properties
AllDayEvent
Indicates whether event instance lasts all day
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("all_day_event")]
public bool? AllDayEvent { get; init; }
Property Value
- bool?
ChurchCenterUrl
The URL for the event on Church Center
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("church_center_url")]
public string? ChurchCenterUrl { get; init; }
Property Value
CreatedAt
UTC time at which the event instance was created
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
Description
A rich text public-facing summary of the event
Only available when requested with the ?fields param
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
EndsAt
UTC time at which the event instance ends
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("ends_at")]
public DateTime? EndsAt { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
ImageUrl
Path to where the event image is stored
Only available when requested with the ?fields param
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("image_url")]
public string? ImageUrl { get; init; }
Property Value
Kind
The type of event: standard or blockout
Only available when requested with the ?fields param
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("kind")]
public string? Kind { get; init; }
Property Value
Location
Representation of where the event instance takes place
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("location")]
public string? Location { get; init; }
Property Value
Name
Name of event. Can be overridden for specific instances
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
PublishedEndsAt
Publicly visible end time
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("published_ends_at")]
public string? PublishedEndsAt { get; init; }
Property Value
PublishedStartsAt
Publicly visible start time
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("published_starts_at")]
public string? PublishedStartsAt { get; init; }
Property Value
Recurrence
For a recurring event instance, the interval of how often the event instance occurs
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("recurrence")]
public string? Recurrence { get; init; }
Property Value
RecurrenceDescription
Longer description of the event instance's recurrence pattern
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("recurrence_description")]
public string? RecurrenceDescription { get; init; }
Property Value
StartsAt
UTC time at which the event instance starts
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("starts_at")]
public DateTime? StartsAt { get; init; }
Property Value
UpdatedAt
UTC time at which the event instance was updated
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }
Property Value
Methods
Equals(EventInstance?)
public virtual bool Equals(EventInstance? other)
Parameters
otherEventInstance
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 ==(EventInstance?, EventInstance?)
public static bool operator ==(EventInstance? left, EventInstance? right)
Parameters
leftEventInstancerightEventInstance
Returns
operator !=(EventInstance?, EventInstance?)
public static bool operator !=(EventInstance? left, EventInstance? right)
Parameters
leftEventInstancerightEventInstance