MessageType

Represents the type of Message. Based on type the message's content is treated differently.

The tag specifies the unique protobuf field number of each enum entry. See tag-info.

Note: the serialization is based on tag and by extension it will be serialized as Int.

Entries

Link copied to clipboard
Link copied to clipboard

Indicates the Message.content is an encrypted text.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Indicates the Message.content acts as a receipt that the receiver decrypted successfully the message. Delivery receipts refer to some MessageID and notify the sender that the MessageRecord may be deleted.

Link copied to clipboard
Link copied to clipboard

Indicates the Message.content is a non-encrypted text.

Link copied to clipboard

Indicates that the message was rejected and the Message.content contains info about the rejection in JSON format.

Link copied to clipboard

Indicates the Message.content holds an encoded HubMessage in Json format.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tag: Int