TrustRequest

data class TrustRequest(account: String, address: JsonAddress, safetyNumber: String?, qrCodeData: String?, trustLevel: String?) : SignaldRequestBodyV1<Trust, 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

getTypedResponseOrNull
Link copied to clipboard
common
open override fun getTypedResponseOrNull(responseWrapper: JsonMessageWrapper<*>): EmptyResponse?
A function to resolve the response body by verifying the type of the response and returning a non-null value iff the wrapper and data is the right type.
submit
Link copied to clipboard
common
fun submit(socketCommunicator: SocketCommunicator): EmptyResponse

Properties

account
Link copied to clipboard
common
val account: String
The account to interact with Example: "+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 absent Example: "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.