Package tbdex.sdk.messages
Class MessageMetadata
-
- All Implemented Interfaces:
public final class MessageMetadataRepresents metadata associated with a tbDEX message.
-
-
Constructor Summary
Constructors Constructor Description MessageMetadata(String from, String to, MessageKind kind, String id, String exchangeId, String externalId, String protocol, String createdAt)
-
Method Summary
Modifier and Type Method Description final StringgetFrom()The DID of the sender of the message. final StringgetTo()The DID of the recipient of the message. final MessageKindgetKind()The kind of message being sent (e.g., RFQ, QUOTE, etc.). final StringgetId()The unique identifier for the message. final StringgetExchangeId()The exchange ID shared between Alice and the PFI. final StringgetExternalId()Optional external ID for additional identification. final StringgetProtocol()The version of the tbDEX protocol in use. final StringgetCreatedAt()The timestamp when the message was created (in ISO 8601 format). -
-
Method Detail
-
getKind
final MessageKind getKind()
The kind of message being sent (e.g., RFQ, QUOTE, etc.).
-
getExchangeId
final String getExchangeId()
The exchange ID shared between Alice and the PFI.
-
getExternalId
final String getExternalId()
Optional external ID for additional identification.
-
getProtocol
final String getProtocol()
The version of the tbDEX protocol in use.
-
getCreatedAt
final String getCreatedAt()
The timestamp when the message was created (in ISO 8601 format).
-
-
-
-