FenceDwellEvent

@JsonClass(generateAdapter = true)
data class FenceDwellEvent(val fenceId: UUID, val fenceName: String, val locations: List<LocationDetails>, val applicationState: AppState, val eventTime: Instant = Instant.now(), val localEventTime: String = eventTime.toLocalEventTimeString(), val calculatedDwellTime: Long, val dwellThreshold: Int) : TriggerEvent, FenceDwell

Constructors

Link copied to clipboard
constructor(fenceId: UUID, fenceName: String, locations: List<LocationDetails>, applicationState: AppState, eventTime: Instant = Instant.now(), localEventTime: String = eventTime.toLocalEventTimeString(), calculatedDwellTime: Long, dwellThreshold: Int)

Properties

Link copied to clipboard
open override val applicationState: AppState

Application-related detail.

Link copied to clipboard
open override val calculatedDwellTime: Long

Dwell time from entry to dwell time trigger, in milliseconds

Link copied to clipboard
open override val dwellThreshold: Int

Backend-configured dwell threshold, in seconds

Link copied to clipboard
open override val eventTime: Instant

Date Time when the trigger event happened.

Link copied to clipboard
open override val fenceId: UUID

Unique Id of the last crossed fence leading up to the trigger event.

Link copied to clipboard
open override val fenceName: String

Name of the last crossed fence leading up to the trigger event.

Link copied to clipboard
open override val localEventTime: String
Link copied to clipboard
val locations: List<LocationDetails>

The Location Update(s) leading to the event.

Functions

Link copied to clipboard
fun toJson(): String

Convert this object to JSON.