MediationRequest

class MediationRequest constructor(val id: String, val type: String = ProtocolType.DidcommMediationRequest.value, val from: DID, val to: DID)(source)

The MediationRequest class represents a mediation request in the application.

Parameters

id

The unique identifier of the mediation request.

type

The type of the mediation request. Default value is ProtocolType.DidcommMediationRequest.

from

The source DID (Decentralized Identifier) of the mediation request.

to

The target DID (Decentralized Identifier) of the mediation request.

Constructors

Link copied to clipboard
constructor(from: DID, to: DID)
constructor(id: String, type: String = ProtocolType.DidcommMediationRequest.value, from: DID, to: DID)

Creates a MediationRequest.

Properties

Link copied to clipboard
val from: DID

The source DID (Decentralized Identifier) of the mediation request.

Link copied to clipboard
val id: String

The unique identifier of the mediation request.

Link copied to clipboard
val to: DID

The target DID (Decentralized Identifier) of the mediation request.

Link copied to clipboard

The type of the mediation request. Default value is ProtocolType.DidcommMediationRequest.

Functions

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

Checks if this MediationRequest object is equal to another object.

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

Generates the hash code for the MediationRequest object.

Link copied to clipboard

Creates a new Message object with default values for some properties and returns it.