MarkReadRequest

data class MarkReadRequest(account: String, to: JsonAddress, timestamps: List<Long>, when: Long?) : SignaldRequestBodyV1<MarkRead, EmptyResponse>

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 interact with Example: "+12024561414"
id
Link copied to clipboard
common
val id: String
The id to include in the request.
timestamps
Link copied to clipboard
common
val timestamps: List<Long>
List of messages to mark as read Example: 1615576442475
to
Link copied to clipboard
common
val to: JsonAddress
The address that sent the message being marked as read
version
Link copied to clipboard
common
val version: String
The version to include in the request.
when
Link copied to clipboard
common
val when: Long? = null