SendRequest

data class SendRequest(username: String?, account: String?, recipientAddress: JsonAddress?, recipientGroupId: String?, messageBody: String?, attachments: List<JsonAttachment>?, quote: JsonQuote?, timestamp: Long?, mentions: List<JsonMention>?, previews: List<JsonPreview>?, members: List<JsonAddress>?, isForStory: Boolean?) : SignaldRequestBodyV1<SendResponse>

Functions

Link copied to clipboard
fun submit(socketCommunicator: SocketCommunicator): SendResponse
open override fun submit(socketCommunicator: SocketCommunicator, id: String): SendResponse
Link copied to clipboard
suspend fun submitSuspend(socketCommunicator: SuspendSocketCommunicator): SendResponse
open suspend override fun submitSuspend(socketCommunicator: SuspendSocketCommunicator, id: String): SendResponse

Properties

Link copied to clipboard
val account: String? = null

Example: "0cc10e61-d64c-4dbc-b51c-334f7dd45a4a"

Link copied to clipboard
val attachments: List<JsonAttachment>? = null
Link copied to clipboard
val id: String

The id to include in the request. This is expected to be present in the response JSON.

Link copied to clipboard
val isForStory: Boolean? = null

set to true when replying to a story

Link copied to clipboard
val members: List<JsonAddress>? = null

Optionally set to a sub-set of group members. Ignored if recipientGroupId isn't specified

Link copied to clipboard
val mentions: List<JsonMention>? = null
Link copied to clipboard
val messageBody: String? = null

Example: "hello"

Link copied to clipboard
val previews: List<JsonPreview>? = null
Link copied to clipboard
val quote: JsonQuote? = null
Link copied to clipboard
val recipientAddress: JsonAddress? = null
Link copied to clipboard
val recipientGroupId: String? = null

Example: "EdSqI90cS0UomDpgUXOlCoObWvQOXlH5G3Z2d3f4ayE="

Link copied to clipboard
val timestamp: Long? = null
Link copied to clipboard
val username: String? = null

Example: "+12024561414"

Link copied to clipboard
val version: String

The version to include in the request. As this class won't be used to deserialize the response, the Required annotation is being used to force this field to be serialized