InstantMessageHelper class abstract interface

Helper interface for instant message management.

Manages instant message factories and provides core functionality for:

  • Creating instant messages (envelope + content)
  • Parsing raw instant message data into strongly-typed InstantMessage instances
  • Generating unique serial numbers (SN) for message identification

InstantMessage represents the basic, unencrypted message structure (envelope + content) before security processing (encryption/signing).

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 an instant message from envelope (header) and content (body).
generateSerialNumber(String? msgType, DateTime? now) int
Generates a unique serial number (SN) for message identification.
getInstantMessageFactory() InstantMessageFactory?
Get the instant message factory.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseInstantMessage(Object? msg) InstantMessage?
Parses raw instant message data into a strongly-typed InstantMessage instance.
setInstantMessageFactory(InstantMessageFactory factory) → void
Set the instant message factory.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited