GetGroupRequest

data class GetGroupRequest(account: String, groupID: String, revision: Int?) : SignaldRequestBodyV1<JsonGroupV2Info>

Query the server for the latest state of a known group. If no account in signald is a member of the group (anymore), an error with error_type: 'UnknownGroupException' is returned.

Constructors

GetGroupRequest
Link copied to clipboard
common
fun GetGroupRequest(account: String, groupID: String, revision: Int? = null)

Functions

submit
Link copied to clipboard
common
fun submit(socketCommunicator: SocketCommunicator): JsonGroupV2Info
submitSuspend
Link copied to clipboard
common
suspend fun submitSuspend(socketCommunicator: SuspendSocketCommunicator): JsonGroupV2Info

Properties

account
Link copied to clipboard
common
val account: String
The account to interact withExample: "+12024561414"
groupID
Link copied to clipboard
common
val groupID: String
Example: "EdSqI90cS0UomDpgUXOlCoObWvQOXlH5G3Z2d3f4ayE="
id
Link copied to clipboard
common
val id: String
The id to include in the request.
revision
Link copied to clipboard
common
val revision: Int? = null
the latest known revision, default value (-1) forces fetch from server
version
Link copied to clipboard
common
val version: String
The version to include in the request.