VerifyRequest

data class VerifyRequest(account: String, code: String) : SignaldRequestBodyV1<Verify, Account>

verify an account's phone number with a code after registering, completing the account creation process

Constructors

VerifyRequest
Link copied to clipboard
common
fun VerifyRequest(account: String, code: String)

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 being verified Example: "+12024561414"
code
Link copied to clipboard
common
val code: String
the verification code, dash (-) optional Example: "555555"
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.