ProposePresentation

Class representing a proposal for a presentation.

Throws

If the message type is invalid.

Constructors

Link copied to clipboard
constructor(id: String? = UUID.randomUUID().toString(), body: ProposePresentation.Body, attachments: Array<AttachmentDescriptor>, thid: String?, from: DID, to: DID)

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.

constructor(fromMessage: Message)

Constructs a ProposePresentation object by processing a Message.

Types

Link copied to clipboard
data class Body constructor(val goalCode: String? = null, val comment: String? = null, val proofTypes: Array<ProofTypes>? = emptyArray())

Represents the body of a message in the ProposePresentation protocol.

Properties

Link copied to clipboard

The attachments of the presentation.

Link copied to clipboard

The body of the presentation.

Link copied to clipboard
lateinit var from: DID

The sender of the presentation.

Link copied to clipboard
lateinit var id: String

The ID of the presentation.

Link copied to clipboard
var thid: String?

The thread ID of the presentation.

Link copied to clipboard
lateinit var to: DID

The recipient of the presentation.

Link copied to clipboard

The type of the presentation.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this object with the specified object for equality.

Link copied to clipboard
open override fun hashCode(): Int

Calculates the hash code of the ProposePresentation instance.

Link copied to clipboard

Creates a Message object based on the current state of the ProposePresentation instance. The Message object includes information about the sender, recipient, message body, and other metadata.