MessageMetadata

class MessageMetadata(val from: String, val to: String, val kind: MessageKind, val id: String, val exchangeId: String, val externalId: String? = null, val createdAt: OffsetDateTime, val protocol: String) : Metadata

A data class representing the metadata present on every Message

Constructors

Link copied to clipboard
constructor(from: String, to: String, kind: MessageKind, id: String, exchangeId: String, externalId: String? = null, createdAt: OffsetDateTime, protocol: String)

Properties

Link copied to clipboard

ISO 8601 timestamp

Link copied to clipboard

ID for an "exchange" of messages between Alice <-> PFI. Set by the first message in an exchange

Link copied to clipboard
val externalId: String? = null

Arbitrary ID for the caller to associate with the message. Different messages in the same exchange can have different IDs

Link copied to clipboard

The sender's DID

Link copied to clipboard
val id: String

The message's ID

Link copied to clipboard

e.g. rfq, quote etc. This defines the data property's type

Link copied to clipboard

Version of the protocol in use (x.x format). The protocol version must remain consistent across messages in a given exchange. Messages sharing the same exchangeId MUST also have the same protocol version. Protocol versions are tracked under https://github.com/TBD54566975/tbdex

Link copied to clipboard
val to: String

the recipient's DID