ConnectionAccept

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

Initializes a new instance of the ConnectionAccept struct with the specified parameters.

Parameters

from

The DID of the sender of the connection acceptance message.

to

The DID of the recipient of the connection acceptance message.

thid

The thread ID of the connection acceptance message.

body

The body of the connection acceptance message.


constructor(fromMessage: Message)(source)

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

Parameters

fromMessage

The message to decode.


constructor(fromRequest: ConnectionRequest)(source)

Initializes a new instance of the ConnectionAccept struct from the specified request.

Parameters

fromRequest

The request to use for initialization.