LiveActivity

data class LiveActivity(val id: String, val projectId: String, val subscriberId: String, val template: LiveActivityTemplate, val status: LiveActivityStatus, val configuration: FootballMatchConfiguration, val liveData: FootballMatchLiveData, val hotMessage: HotMessage?, val createdAt: Long = System.currentTimeMillis(), val updatedAt: Long = System.currentTimeMillis(), val countdownMessage: String? = null, val countdownEndAtMs: Long? = null)

In-memory representation of a tracked Live Activity. Combines the static configuration (received once with the start event) and the latest dynamic liveData / hotMessage (refreshed by update events). Mirrors the backend / iOS Live Notification contract.

Constructors

Link copied to clipboard
constructor(id: String, projectId: String, subscriberId: String, template: LiveActivityTemplate, status: LiveActivityStatus, configuration: FootballMatchConfiguration, liveData: FootballMatchLiveData, hotMessage: HotMessage?, createdAt: Long = System.currentTimeMillis(), updatedAt: Long = System.currentTimeMillis(), countdownMessage: String? = null, countdownEndAtMs: Long? = null)

Properties

Link copied to clipboard
val countdownEndAtMs: Long? = null

Epoch millis of startPolicy.scheduledAt — the moment the countdown hits zero.

Link copied to clipboard

Pre-match countdown message (from startPolicy.countdown), if any.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard