ConnectionRequest

constructor(from: DID, to: DID, thid: String? = null, body: ConnectionRequest.Body)(source)

Represents a connection request message in the messaging protocol.

Parameters

from

The sender's DID.

to

The recipient's DID.

thid

The thread ID.

body

The body of the connection request message.


constructor(inviteMessage: Message, from: DID)(source)

Initializes a new instance of the ConnectionRequest struct from the specified invitation message.

Parameters

inviteMessage

The invitation message to use for initialization.

from

The DID of the sender of the connection request message.


constructor(inviteMessage: OutOfBandInvitation, from: DID)(source)

Initializes a new instance of the ConnectionRequest struct from the specified out-of-band invitation.

Parameters

inviteMessage

The out-of-band invitation to use for initialization.

from

The DID of the sender of the connection request message.


constructor(fromMessage: Message)(source)

Initializes a new instance of the ConnectionRequest struct from the specified message.

Parameters

fromMessage

The message to decode.