UndeliveredReceipt

@Serializable
data class UndeliveredReceipt(val messageId: MessageId, val reason: Int) : SmpContent

Represents an undelivered message receipt in the Satellite Message Protocol.

This class encapsulates a notification that a message could not be delivered to its intended recipient. It includes information about which message failed and the specific reason for the delivery failure.

Constructors

Link copied to clipboard
constructor(messageId: MessageId, reason: Int)

Types

Link copied to clipboard
Link copied to clipboard

Enumeration of possible reasons for message delivery failure.

Properties

Link copied to clipboard

The type of content represented by this instance.

Link copied to clipboard

The unique identifier of the message that could not be delivered.

Link copied to clipboard
val reason: Int

The specific reason why the message delivery failed. This can be a custom code as per use case.

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.