ScheduledMessageStatus

@Immutable
abstract class ScheduledMessageStatus

Where a ScheduledMessage is, from scheduling until it is sent. More statuses can be added in a minor version, so a when on it needs an else branch.

Inheritors

Types

Link copied to clipboard

The message was deleted, so it is never sent. Only the scheduled message of a scheduled_message.deleted event has it.

Link copied to clipboard

The message could not be scheduled or sent. See ScheduledMessage.failure.

Link copied to clipboard

The latest changes are not on the server yet: the attachments are uploading, the device is offline, or the changes are being sent.

Link copied to clipboard

The server has the latest changes and sends the message at ScheduledMessage.scheduledAt.

Link copied to clipboard

The server is sending the message, at its date or after a send now, including while it retries a failed attempt. It can no longer be edited, rescheduled or sent now.

Link copied to clipboard

The message was sent. Only the scheduled message of a scheduled_message.sent event has it.

Link copied to clipboard
data class Unknown(val value: String) : ScheduledMessageStatus

A status this version of the SDK does not know.

Properties

Link copied to clipboard
abstract val value: String

The raw value of the status.