SosTextAndLocationContent

@Serializable
data class SosTextAndLocationContent(val controlFlag: SmpContent.ControlFlag = ControlFlag.GPS_FIX_WITH_NO_RECEIPT, val partnerId: Long, val latitude: Double, val longitude: Double, val textMessage: String) : SmpContent

Represents emergency SOS content with text and location in the Satellite Message Protocol.

This class encapsulates an emergency SOS message that includes both text and location data to be transmitted via satellite. It is specifically designed for emergency situations where both the user's message and precise location are critical information for first responders.

Constructors

Link copied to clipboard
constructor(controlFlag: SmpContent.ControlFlag = ControlFlag.GPS_FIX_WITH_NO_RECEIPT, partnerId: Long, latitude: Double, longitude: Double, textMessage: String)

Types

Properties

Link copied to clipboard

The type of content represented by this instance.

Link copied to clipboard

The flag indicating what types of delivery confirmations are required. Defaults to GPS_FIX_WITH_NO_RECEIPT to prioritize location information without requiring delivery confirmation.

Link copied to clipboard

The geographical latitude coordinate in decimal degrees.

Link copied to clipboard

The geographical longitude coordinate in decimal degrees.

Link copied to clipboard

The unique identifier of the message sender/recipient. Typically represented as a numeric mobile number (e.g., 11234567890 for the formatted number +1 123 456 7890).

Link copied to clipboard

The text content of the emergency message.

Functions

Link copied to clipboard
fun createSmpHeader(messageCounter: Int, eventTimestamp: SmpTimestamp, version: Int = 1, ackFlag: Boolean = false): SmpHeader

Creates an SMP header for this content.