MessageStatus enum
The delivery state of a message in the local database.
Values
- pending → const MessageStatus
-
Message was created locally and has not yet been synced to any peer.
const MessageStatus(0) - sent → const MessageStatus
-
Message has been sent to at least one peer during a sync exchange. It may still need to reach additional hops to arrive at the target.
const MessageStatus(1) - delivered → const MessageStatus
-
Message has been confirmed as delivered to the target node.
Not yet implemented. A future reverse-gossip acknowledgment mechanism will transition messages to this state when the target node confirms receipt. Currently, messages only reach sent.
const MessageStatus(2) - expired → const MessageStatus
-
Message TTL has expired (hop count reached 0 or time-based TTL exceeded). It will be pruned from the database during the next cleanup cycle.
const MessageStatus(3)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
Integer value stored in the Drift database.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
int value) → MessageStatus - Deserialize from the integer stored in the database.
Constants
-
values
→ const List<
MessageStatus> - A constant List of the values in this enum, in order of their declaration.