SendMessageResult

@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.

This class encapsulates the outcome of an attempt to send a message over the satellite network, including whether the operation succeeded, the message header information, and optionally the number of bytes consumed from the user's quota.

Constructors

Link copied to clipboard
constructor(header: SmpHeader, result: Boolean, bytesConsumed: Int? = null)

Properties

Link copied to clipboard
val bytesConsumed: Int? = null

The number of bytes consumed from the user's data quota by this message, or null if quota tracking is not applicable.

Link copied to clipboard

The header of the sent message containing metadata like type and timestamp.

Link copied to clipboard

Boolean indicating success (true) or failure (false) of the send operation.