EmergencyAlert

data class EmergencyAlert(val type: Int = 0, val authoringUid: String = "", val cancelReferenceUid: String = "") : TakPacketV2Data.Payload(source)

Emergency alert / 911 beacon. Covers CoT types b-a-o-tbl (911), b-a-o-pan (ring the bell), b-a-o-opn (in contact), b-a-g (geo-fence breached), b-a-o-c (custom), b-a-o-can (cancel).

Maps to the EmergencyAlert protobuf message at payload_variant tag 39.

Constructors

Link copied to clipboard
constructor(type: Int = 0, authoringUid: String = "", cancelReferenceUid: String = "")

Properties

Link copied to clipboard

UID of the unit raising the alert.

Link copied to clipboard

For Type_Cancel: UID of the alert being cancelled. Empty otherwise.

Link copied to clipboard
val type: Int

One of Type_* constants (1..6): 911, RingTheBell, InContact, GeoFenceBreached, Custom, Cancel.