Message

data class Message(val messageType: MessageType, val sourceUuid: UUID, val sourceMsisdn: Msisdn, val sourceDeviceId: Int, val destination: UUID, val destinationDeviceId: Int, val destinationRegistrationId: RegistrationId, val content: String, val timestamp: Long)

Represents the message-dto, which a server-client sends.

Constructors

Link copied to clipboard
constructor(messageType: MessageType, sourceUuid: UUID, sourceMsisdn: Msisdn, sourceDeviceId: Int, destination: UUID, destinationDeviceId: Int, destinationRegistrationId: RegistrationId, content: String, timestamp: Long)

Properties

Link copied to clipboard

The message's content. Usually it is in encoded in Base64-ByteArray format as String, but there is no restriction for the real type. I.e. the actual format can be as simple as a plain text.

Link copied to clipboard

The destination's UUID.

Link copied to clipboard

The destination's deviceId.

Link copied to clipboard

The destination's device registrationId.

Link copied to clipboard
Link copied to clipboard

The source's deviceId.

Link copied to clipboard

The source's Msisdn.

Link copied to clipboard

The source's UUID.

Link copied to clipboard

The timestamp when the message is created.