RequestPresentation

data class RequestPresentation(val id: String = UUID.randomUUID().toString(), val body: RequestPresentation.Body, val attachments: Array<AttachmentDescriptor>, val thid: String? = null, val from: DID, val to: DID? = null, val direction: Message.Direction = Message.Direction.RECEIVED)(source)

The RequestPresentation class represents a request for presentation of credentials or proofs in a DIDComm protocol.

Constructors

Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), body: RequestPresentation.Body, attachments: Array<AttachmentDescriptor>, thid: String? = null, from: DID, to: DID? = null, direction: Message.Direction = Message.Direction.RECEIVED)

Types

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

Represents a class that encapsulates the body of a message.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val from: DID
Link copied to clipboard
val id: String
Link copied to clipboard
val thid: String? = null
Link copied to clipboard
val to: DID? = null
Link copied to clipboard

Functions

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

Checks if this RequestPresentation object is equal to the specified other object.

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

Calculates the hash code for the RequestPresentation object.

Link copied to clipboard

Creates a new Message object based on the current state of the RequestPresentation instance. The Message object contains information about the sender, recipient, message body, and other metadata. This method is typically used to convert a RequestPresentation instance into a Message object for communication purposes.