Event

@Serializable
class Event

Represents a collection of interactive elements that occur over a specific period.

An Event is the main container for live activities within a Project. It has a defined start and end time and can be in one of three states: UPCOMING, ACTIVE, or FINISHED. You can retrieve a list of all interactive elements associated with this event using getElements and listen for live updates by adding an EventUpdateListener.

Properties

Link copied to clipboard
val endAt: Long

The timestamp (in seconds) when the event is scheduled to end.

Link copied to clipboard

Event custom fields data received from M/IC.

Link copied to clipboard
val id: String

The unique identifier of the event.

Link copied to clipboard

The display name of the event.

Link copied to clipboard

The timestamp (in seconds) when the event is scheduled to start.

Link copied to clipboard
@Transient
var state: EventState

Current event state

Functions

Link copied to clipboard
fun add(listener: EventUpdateListener)

Adds a listener to receive updates for this event, such as state changes or new elements.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
suspend fun getElements(): List<Element>

Acquires the list of Element objects associated with this event.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Removes a previously added listener.