RegisterRequest

data class RegisterRequest(account: String, voice: Boolean?, captcha: String?, server: String?) : SignaldRequestBodyV1<Register, Account>

begin the account registration process by requesting a phone number verification code. when the code is received, submit it with a verify request

Constructors

RegisterRequest
Link copied to clipboard
common
fun RegisterRequest(account: String, voice: Boolean? = null, captcha: String? = null, server: String? = null)

Functions

getTypedResponseOrNull
Link copied to clipboard
common
open override fun getTypedResponseOrNull(responseWrapper: JsonMessageWrapper<*>): Account?
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): Account

Properties

account
Link copied to clipboard
common
val account: String
the e164 phone number to register with Example: "+12024561414"
captcha
Link copied to clipboard
common
val captcha: String? = null
See https://signald.
id
Link copied to clipboard
common
val id: String
The id to include in the request.
server
Link copied to clipboard
common
val server: String? = null
The identifier of the server to use.
version
Link copied to clipboard
common
val version: String
The version to include in the request.
voice
Link copied to clipboard
common
val voice: Boolean? = null
set to true to request a voice call instead of an SMS for verification