Factory interface for creating and parsing InstantMessage instances.
Provides methods to generate unique serial numbers, create new instant messages from envelope/content pairs, and parse serialized instant messages.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createInstantMessage(
Envelope head, Content body) → InstantMessage - Creates a new InstantMessage from envelope and plaintext content.
-
generateSerialNumber(
String? msgType, DateTime? now) → int - Generates a unique serial number (SN) for message content.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseInstantMessage(
Map msg) → InstantMessage? - Parses a serialized Map into an InstantMessage instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited