Class MessageMetadata

  • All Implemented Interfaces:
    tbdex.sdk.protocol.models.Metadata

    
    public final class MessageMetadata
     implements Metadata
                        

    A data class representing the metadata present on every Message

    • Method Detail

      • getKind

         final MessageKind getKind()

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

      • getExchangeId

         final String getExchangeId()

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

      • getExternalId

         final String getExternalId()

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

      • getProtocol

         final String getProtocol()

        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