Response class

Response sent from the ECoS

Syntax:

<$type $extra>
[$entries]+
<END $state ($statusMsg)>

Example:

<REPLY get(20000, state, name1)>
20000 state[1]
20000 name1["Weiche"]
<END 0 (OK)>

Constructors

Response({String type, String extra, int status, String statusMsg, List<ListEntry> entries})
Creates a Response with the supplied parameters
Response.fromString(String str)
Parses a Response from string
factory

Properties

entries List<ListEntry>
The list entries (ListEntry*)
final
extra String
The command or id of the Reply
final
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status int
The status number (errno)
final
statusMsg String
The status message (errmsg)
final
type String
The type of the reply (REPLY, EVENT)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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