TrustRequest

data class TrustRequest(account: String, address: JsonAddress, safetyNumber: String?, qrCodeData: String?, trustLevel: String?) : SignaldRequestBodyV1<EmptyResponse>

Trust another user's safety number using either the QR code data or the safety number text

Constructors

TrustRequest
Link copied to clipboard
common
fun TrustRequest(account: String, address: JsonAddress, safetyNumber: String? = null, qrCodeData: String? = null, trustLevel: String? = null)

Functions

submit
Link copied to clipboard
common
fun submit(socketCommunicator: SocketCommunicator): EmptyResponse
submitSuspend
Link copied to clipboard
common
suspend fun submitSuspend(socketCommunicator: SuspendSocketCommunicator): EmptyResponse

Properties

account
Link copied to clipboard
common
val account: String
The account to interact withExample: "+12024561414"
address
Link copied to clipboard
common
val address: JsonAddress
The user to query identity keys for
id
Link copied to clipboard
common
val id: String
The id to include in the request.
qrCodeData
Link copied to clipboard
common
val qrCodeData: String? = null
base64-encoded QR code data.
safetyNumber
Link copied to clipboard
common
val safetyNumber: String? = null
required if qr_code_data is absentExample: "373453558586758076680580548714989751943247272727416091564451"
trustLevel
Link copied to clipboard
common
val trustLevel: String? = null
One of TRUSTED_UNVERIFIED, TRUSTED_VERIFIED or UNTRUSTED.
version
Link copied to clipboard
common
val version: String
The version to include in the request.