@JsonClass(true) data class BasicMessageRecord : BaseRecord
A record that represents state of the basic message protocol (see service for details). Tags are set for direction and connectionContext (connection ID) for filtering.
Direction |
enum class Direction |
<init> |
A record that represents state of the basic message protocol (see service for details). Tags are set for direction and connectionContext (connection ID) for filtering. BasicMessageRecord(id: String, content: String, sentTime: String, direction: Direction, dispatched: Boolean?, connectionContext: ConnectionContext) |
connectionContext |
the corresponding connection val connectionContext: ConnectionContext |
content |
the message contents val content: String |
direction |
outgoing or incoming message type val direction: Direction |
dispatched |
Result of dispatching (sending) this message; makes sense only for outgoing messages (see direction). Null if dispatching has not yet been attempted, false if dispatching has failed and true if dispatching was successful. For incoming messages, this value should be ignored and can be set to null. val dispatched: Boolean? |
id |
the identifier val id: String |
sentTime |
ISO 8601 datetime string in UTC offset. Example: "2020-10-27 08:30:00Z". Note: Java APIs use "2020-10-27T08:30:00Z", so check and convert if needed. val sentTime: String |
getUnixSentTime |
fun getUnixSentTime(): Long |
TAG_CONNECTION_ID |
const val TAG_CONNECTION_ID: String |
TAG_DIRECTION |
const val TAG_DIRECTION: String |