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

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

Functions

Link copied to clipboard
fun submit(socketCommunicator: SocketCommunicator): EmptyResponse
open override fun submit(socketCommunicator: SocketCommunicator, id: String): EmptyResponse
Link copied to clipboard
suspend fun submitSuspend(socketCommunicator: SuspendSocketCommunicator): EmptyResponse
open suspend override fun submitSuspend(socketCommunicator: SuspendSocketCommunicator, id: String): EmptyResponse

Properties

Link copied to clipboard
val account: String

The account to interact with

Link copied to clipboard
val address: JsonAddress

The user to query identity keys for

Link copied to clipboard
val id: String

The id to include in the request. This is expected to be present in the response JSON.

Link copied to clipboard
val qrCodeData: String? = null

base64-encoded QR code data. required if safety_number is absent

Link copied to clipboard
val safetyNumber: String? = null

required if qr_code_data is absent

Link copied to clipboard
val trustLevel: String? = null

One of TRUSTED_UNVERIFIED, TRUSTED_VERIFIED or UNTRUSTED. Default is TRUSTED_VERIFIED

Link copied to clipboard
val version: String

The version to include in the request. As this class won't be used to deserialize the response, the Required annotation is being used to force this field to be serialized