ServiceReply class
Used to return the results of a specific service function.
- Inheritance
-
- Object
- ServiceMessage
- ServiceReply
Constructors
-
ServiceReply.new({String? messageId, Set<
String> receivers = const <String>{}, String sender = '', String? replyingToMessage, String? replyToEndpoint, String serviceType = '', Map<String, dynamic> ? results}) -
Creates a ServiceReply with a newly generated UUIDv4 if
messageId
is not set. -
ServiceReply.fromJson(Map<
String, dynamic> json) -
Creates a ServiceReply with the information stored in the
json
.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
The unique identifier of this message (UUIDv4).
no setterinherited
-
receivers
↔ Set<
String> -
All receivers of this message (should be a
s3I:UUIDv4
of the receiving thing).getter/setter pairinherited - replyingToMessage ↔ String?
-
The identifier of the message to which this message is answering.
getter/setter pairinherited
- replyToEndpoint ↔ String?
-
The endpoint to which the answer to this message should be sent.
getter/setter pairinherited
-
results
↔ Map<
String, dynamic> ? -
The results generated by the service function.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender ↔ String
-
The sender of this message (should be a
s3I:UUIDv4
of the publishing thing).getter/setter pairinherited - serviceType ↔ String
-
The fml4.0 key to a specific service functionality.
getter/setter pairinherited
Methods
-
generateFromJson(
Map< String, dynamic> json) → void -
Fills this ServiceMessage with the information stored in the
json
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns the information stored in this object in a way the it could be
encoded via
jsonEncode()
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited