aries / net.globalid.aries.features.trustping.record / TrustPingRecord

TrustPingRecord

open class TrustPingRecord : BaseRecord

Represents a wallet record for the trust ping protocol.

Types

ReceivedPing

Represents a trust ping record in the "received ping" state. We are in this state after receiving a ping message from the sender. If the response requested flag is false, we MUST NOT respond. If responding, we use the thread ID to make a thread decorator.

data class ReceivedPing : TrustPingRecord

ReceivedResponse

Represents a trust ping record in the "received response" state. We are in this state after receiving a response from a sent ping message. Note: if we set the response requested flag to false in the initial ping message, we should NOT have received a response. In that case, we stay in the "sent ping" state.

data class ReceivedResponse : TrustPingRecord

SentPing

Represents a trust ping record in the "sent ping" state. We are in this state after sending a ping message.

data class SentPing : TrustPingRecord

SentResponse

Represents a trust ping record in the "sent response" state. We are in this state after sending back a ping response message.

data class SentResponse : TrustPingRecord

Constructors

<init>

Represents a wallet record for the trust ping protocol.

TrustPingRecord(id: String, state: String)

Properties

id

is the ID of the wallet record.

open val id: String

state

is the state of the record (used for serialization/deserialization).

val state: String

typeName

must be the same for all sub-classes for correct wallet operation.

open val typeName: String

Companion Object Properties

PROPERTY_STATE

const val PROPERTY_STATE: String

STATE_RECEIVED_PING

const val STATE_RECEIVED_PING: String

STATE_RECEIVED_RESPONSE

const val STATE_RECEIVED_RESPONSE: String

STATE_SENT_PING

const val STATE_SENT_PING: String

STATE_SENT_RESPONSE

const val STATE_SENT_RESPONSE: String

TAG_THREAD_ID

const val TAG_THREAD_ID: String