aries / net.globalid.aries.features.trustping / TrustPingService / createTrustPingResponse

createTrustPingResponse

abstract fun createTrustPingResponse(agent: Agent, record: ReceivedPing, comment: String?): Single<Pair<SentResponse, TrustPingResponseMessage>>

Creates a trust ping response message with an optional comment.

Parameters

agent - for which to create the response message

record - is a record representing the ping message to which we are responding

comment - is an optional comment for the sender (we are in the receiver role)

Return
Single of a Pair of a TrustPingRecord.SentResponse and TrustPingResponseMessage, the record for this trust ping and the created response.