Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ByteArrayContent(val payload: ByteArray) : OtherContent

Represents raw binary data content in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class CheckInContent(val controlFlag: SmpContent.ControlFlag = ControlFlag.READ_RECEIPT_REQUIRED, val partnerId: Long, val textMessage: String, val latitude: Double, val longitude: Double) : SmpContent

Represents check-in message content in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data object CloseSosContent : SmpContent

Represents a close SOS message in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class DeliveryReceipt(val partnerId: Long, val messageId: MessageId, val deliveryTimestamp: SmpTimestamp) : SmpContent

Represents a delivery receipt in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class ExperimentalContent(val payload: ByteArray) : OtherContent

Experimental content type that will be removed in future releases. This is only for internal testing. Please do not use this in production.

Link copied to clipboard
@Serializable
data class LocationContent(val controlFlag: SmpContent.ControlFlag, val partnerId: Long, val latitude: Double, val longitude: Double) : SmpContent

Represents location-only content in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class NetworkAckContent(val messageType: SmpContent.ContentType, val timestamp: SmpTimestamp, val messageCount: Int) : SmpContent

Represents a network acknowledgement message content in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class OpenSosContent(val latitude: Double, val longitude: Double, val reason: Int) : SmpContent

Represents an emergency SOS initiation message in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
sealed class OtherContent : SmpContent

Represents specialized content types in the Satellite Message Protocol that don't fit standard categories.

Link copied to clipboard
@Serializable
data class ReadReceipt(val partnerId: Long, val messageId: MessageId, val readTimestamp: SmpTimestamp) : SmpContent

Represents a read receipt in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class SendMessageResult(val header: SmpHeader, val result: Boolean, val bytesConsumed: Int? = null)

Represents the result of a message sending operation in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
sealed class SmpContent

Abstract sealed class representing different types of content that can be transmitted via SMP.

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
data class TextAndLocationContent(val controlFlag: SmpContent.ControlFlag, val partnerId: Long, val textMessage: String, val latitude: Double, val longitude: Double) : SmpContent

Represents combined text and location content in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class TextContent(val controlFlag: SmpContent.ControlFlag, val partnerId: Long, val textMessage: String) : SmpContent

Represents plain text message content in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
sealed class TrackingContent : OtherContent

Represents location tracking-related content in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class TrackRecord(val latitude: Double, val longitude: Double, val accuracy: Int, val timestamp: SmpTimestamp)

Represents a single location record with timestamp and accuracy information.

Link copied to clipboard
@Serializable
data class UndeliveredReceipt(val messageId: MessageId, val reason: Int) : SmpContent

Represents an undelivered message receipt in the Satellite Message Protocol.

Link copied to clipboard
@Serializable
data class UpdateIMSIContent(val userId: Long, val imsi: Long) : SmpContent

Represents ContentUpdateIMSI message content in the Satellite Message Protocol.