RemoveLinkedDeviceRequest

data class RemoveLinkedDeviceRequest(account: String, deviceId: Long) : SignaldRequestBodyV1<RemoveLinkedDevice, EmptyResponse>

Remove a linked device from the Signal account. Only allowed when the local device id is 1

Constructors

RemoveLinkedDeviceRequest
Link copied to clipboard
common
fun RemoveLinkedDeviceRequest(account: String, deviceId: Long)

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"
deviceId
Link copied to clipboard
common
val deviceId: Long
the ID of the device to unlink Example: 3
id
Link copied to clipboard
common
val id: String
The id to include in the request.
version
Link copied to clipboard
common
val version: String
The version to include in the request.