DeleteAccountRequest

data class DeleteAccountRequest(account: String, server: Boolean?) : SignaldRequestBodyV1<DeleteAccount, EmptyResponse>

delete all account data signald has on disk, and optionally delete the account from the server as well. Note that this is not "unlink" and will delete the entire account, even from a linked device.

Constructors

DeleteAccountRequest
Link copied to clipboard
common
fun DeleteAccountRequest(account: String, server: Boolean? = 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 delete Example: "+12024561414"
id
Link copied to clipboard
common
val id: String
The id to include in the request.
server
Link copied to clipboard
common
val server: Boolean? = null
delete account information from the server as well (default false)
version
Link copied to clipboard
common
val version: String
The version to include in the request.