Presentation

constructor(id: String? = null, body: Presentation.Body, attachments: Array<AttachmentDescriptor>, thid: String? = null, from: DID, to: DID)(source)

The Presentation class represents a presentation message in the EdgeAgent software. It contains the necessary information for constructing a presentation message.

Parameters

id

The unique identifier for the presentation message.

body

The body of the presentation message, including goal code and comment.

attachments

An array of AttachmentDescriptor objects representing the attachments in the message.

thid

The thread ID of the presentation message.

from

The sender's DID.

to

The recipient's DID.


constructor(fromMessage: Message)(source)

Constructor for creating a Presentation object from a Message object.

Parameters

fromMessage

The Message object to create Presentation from.

Throws

if the message type does not represent the protocol "didcomm.presentation" or if the message does not have "from" and "to" fields.