AddLinkedDeviceRequest

data class AddLinkedDeviceRequest(account: String, uri: String) : SignaldRequestBodyV1<AddDevice, EmptyResponse>

Link a new device to a local Signal account

Constructors

AddLinkedDeviceRequest
Link copied to clipboard
common
fun AddLinkedDeviceRequest(account: String, uri: String)

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"
id
Link copied to clipboard
common
val id: String
The id to include in the request.
uri
Link copied to clipboard
common
val uri: String
the tsdevice:/ uri provided (typically in qr code form) by the new device Example: "tsdevice:/?
version
Link copied to clipboard
common
val version: String
The version to include in the request.