SetExpirationRequest

data class SetExpirationRequest(account: String, address: JsonAddress?, group: String?, expiration: Int) : SignaldRequestBodyV1<SetExpiration, SendResponse>

Set the message expiration timer for a thread. Expiration must be specified in seconds, set to 0 to disable timer

Constructors

SetExpirationRequest
Link copied to clipboard
common
fun SetExpirationRequest(account: String, address: JsonAddress? = null, group: String? = null, expiration: Int)

Functions

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

Properties

account
Link copied to clipboard
common
val account: String
The account to use Example: "+12024561414"
address
Link copied to clipboard
common
val address: JsonAddress? = null
expiration
Link copied to clipboard
common
val expiration: Int
Example: 604800
group
Link copied to clipboard
common
val group: String? = null
Example: "EdSqI90cS0UomDpgUXOlCoObWvQOXlH5G3Z2d3f4ayE="
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.