RequestSyncRequest

data class RequestSyncRequest(account: String, groups: Boolean?, configuration: Boolean?, contacts: Boolean?, blocked: Boolean?) : SignaldRequestBodyV1<RequestSync, EmptyResponse>

Request other devices on the account send us their group list, syncable config and contact list.

Constructors

RequestSyncRequest
Link copied to clipboard
common
fun RequestSyncRequest(account: String, groups: Boolean? = null, configuration: Boolean? = null, contacts: Boolean? = null, blocked: 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 use Example: "+12024561414"
blocked
Link copied to clipboard
common
val blocked: Boolean? = null
request block list sync (default true)
configuration
Link copied to clipboard
common
val configuration: Boolean? = null
request configuration sync (default true)
contacts
Link copied to clipboard
common
val contacts: Boolean? = null
request contact sync (default true)
groups
Link copied to clipboard
common
val groups: Boolean? = null
request group sync (default true)
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.