Companion

object Companion

Functions

Link copied to clipboard
fun create(to: String, from: String, exchangeId: String, quoteData: QuoteData, protocol: String = "1.0", externalId: String? = null): Quote

Creates a new Quote message, autopopulating the id, creation time, and message kind.

Link copied to clipboard
fun parse(payload: String): Quote

Takes an existing Quote in the form of a json string and parses it into a Quote object. Validates object structure and performs an integrity check using the message signature.