PMTpsEvent

data class PMTpsEvent(val eventId: String, val createdAt: String, val lastUpdatedAt: String? = null, val validUntil: String, val position: PMTpsPosition, val category: PMTpsCategory, val provider: String, val warningDistance: Int = 0, val type: PMTpsType, val radius: Int = 0, val trace: List<PMTpsPosition>? = null, val severity: PMTpsSeverity)

Represents one PreSafe event

Constructors

Link copied to clipboard
fun PMTpsEvent(eventId: String, createdAt: String, lastUpdatedAt: String? = null, validUntil: String, position: PMTpsPosition, category: PMTpsCategory, provider: String, warningDistance: Int = 0, type: PMTpsType, radius: Int = 0, trace: List<PMTpsPosition>? = null, severity: PMTpsSeverity)

Properties

Link copied to clipboard

defines category of the event
Default value is PMTpsCategory.GeneralWarning

Link copied to clipboard

defines the time of event creation in the UTC format, example 2015-03-06T14:15:00Z

Link copied to clipboard

PreSafe event ID

Link copied to clipboard
val lastUpdatedAt: String? = null

defines the time of event last update in the UTC format, example 2015-03-06T14:15:00Z

Link copied to clipboard

position of event

Link copied to clipboard

name of provider of this events data.

Link copied to clipboard
val radius: Int = 0

(optional) radius of the event defined in meters. This field is required for event type Radius

Link copied to clipboard

defines severity
Default value is PMTpsSeverity.Unknown

Link copied to clipboard
val trace: List<PMTpsPosition>? = null

(optional) array of positions for event type PFTpsType == Trace. This field is required for event type Trace.

Link copied to clipboard

type of PreSafe event
Default value is PMTpsType.Radius

Link copied to clipboard

defines the time of event validity in the UTC format, example 2015-03-06T14:15:00Z

Link copied to clipboard

distance in meters from current position, when we want to trigger event