EventEntry

@Serializable
sealed interface EventEntry(source)

Entry type for events that can appear in an EventsSchedule.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "bounded")
data class Bounded(val title: String, val description: String, val startsOn: LocalDate, val endsOn: LocalDate) : EventEntry

Event with both start and end moments known.

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
@SerialName(value = "openEnd")
data class OpenEnd(val title: String, val description: String, val startsOn: LocalDate) : EventEntry

Event with an unknown end date.

Link copied to clipboard
@Serializable
@SerialName(value = "openStart")
data class OpenStart(val title: String, val description: String, val endsOn: LocalDate) : EventEntry

Event with an unknown start date.

Properties

Link copied to clipboard
abstract val description: String

Brief description of the event.

Link copied to clipboard
abstract val endsAt: Instant?

The exact moment when the event ends. Based on the event's end date and server save time.

Link copied to clipboard
abstract val endsOn: LocalDate?

End date of the event, or null if the end is open/unknown.

Link copied to clipboard
abstract val startsAt: Instant?

The exact moment when the event starts. Based on the event's start date and server save time.

Link copied to clipboard
abstract val startsOn: LocalDate?

Start date of the event, or null if the start is open/unknown.

Link copied to clipboard
abstract val title: String

The title or name of the event.