CreateGroupRequest

data class CreateGroupRequest(account: String, title: String, avatar: String?, members: List<JsonAddress>, timer: Int?, memberRole: String?) : SignaldRequestBodyV1<CreateGroup, JsonGroupV2Info>

Functions

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

Properties

account
Link copied to clipboard
common
val account: String
The account to interact with Example: "+12024561414"
avatar
Link copied to clipboard
common
val avatar: String? = null
Example: "/tmp/image.
id
Link copied to clipboard
common
val id: String
The id to include in the request.
memberRole
Link copied to clipboard
common
val memberRole: String? = null
The role of all members other than the group creator.
members
Link copied to clipboard
common
val members: List<JsonAddress>
timer
Link copied to clipboard
common
val timer: Int? = null
the message expiration timer
title
Link copied to clipboard
common
val title: String
Example: "Parkdale Run Club"
version
Link copied to clipboard
common
val version: String
The version to include in the request.