Propose Presentation
constructor(id: String? = UUID.randomUUID().toString(), body: ProposePresentation.Body, attachments: Array<AttachmentDescriptor>, thid: String?, from: DID, to: DID)(source)
The ProposePresentation
class represents a proposal for a presentation in the Prism agent. It is used to create a new ProposePresentation
object with the given parameters.
Parameters
id
The ID of the proposal. If not provided, a new random UUID will be generated.
body
The body of the proposal, including goal code, comment, and proof types.
attachments
An array of attachment descriptors for the proposal.
thid
The thread ID of the message.
from
The sender's DID.
to
The recipient's DID.
Constructs a ProposePresentation object by processing a Message.
Parameters
from Message
the input Message object
Throws
if the fromMessage does not represent the expected protocol type