Class representing a reponse received from the FreeSWTICH event socket.

Constants

ERROR → String

'-ERR'
error → String

'-ERR'
OK → String

String constants that map to responses.

'+OK'
ok → String

'+OK'
UNKNOWN → String

''
unknown → String

''
USAGE → String

'-USAGE'
usage → String

'-USAGE'

Constructors

Response.fromPacketBody(String rawBody)

Properties

channelUUID → String

Reponses may carry the UUID of a channel.

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
rawBody → String

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
status → String

The status of the response. Can be either ok, error or unknown.

read-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

String representation of a Response for debug purposes or manual processing.