Message class

Constructors

Message(String sourceId, String? targetId, MessageType type, GeigerUrl? action, [List<int>? payload, String? requestId])
Creates a Message with the provided properties.

Properties

action GeigerUrl?
Returns the action URL of the message.
final
hash Hash
Hash of the data
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
payload List<int>
Returns the payload as array of bytes.
getter/setter pair
payloadString String?
Returns the payload as a string.
getter/setter pair
requestId String
Unique ID of the request shared by the request message and the confirmation message.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceId String
ID of the source plugin.
final
targetId String?
ID of the target plugin.
final
type MessageType
Type of the message.
final

Methods

integrityHash(CommunicationSecret secret) Hash
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toByteArrayStream(ByteSink out, [CommunicationSecret? secret]) → void
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromByteArray(ByteStream in_) Future<Message>
Convert ByteArrayInputStream to Message. @param in the ByteArrayInputStream to use @return the converted Message @throws IOException if bytes cannot be read

Constants

serialVersionUID → const int