SendRequest

data class SendRequest(username: String, recipientAddress: JsonAddress?, recipientGroupId: String?, messageBody: String?, attachments: List<JsonAttachment>, quote: JsonQuote?, timestamp: Long?, mentions: List<JsonMention>) : SignaldRequestBodyV1<Send, SendResponse>

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

attachments
Link copied to clipboard
common
val attachments: List<JsonAttachment>
id
Link copied to clipboard
common
val id: String
The id to include in the request.
mentions
Link copied to clipboard
common
val mentions: List<JsonMention>
messageBody
Link copied to clipboard
common
val messageBody: String? = null
Example: "hello"
quote
Link copied to clipboard
common
val quote: JsonQuote? = null
recipientAddress
Link copied to clipboard
common
val recipientAddress: JsonAddress? = null
recipientGroupId
Link copied to clipboard
common
val recipientGroupId: String? = null
Example: "EdSqI90cS0UomDpgUXOlCoObWvQOXlH5G3Z2d3f4ayE="
timestamp
Link copied to clipboard
common
val timestamp: Long? = null
username
Link copied to clipboard
common
val username: String
Example: "+12024561414"
version
Link copied to clipboard
common
val version: String
The version to include in the request.