Service class
communicate with server with command using ajax,protobuf and command pattern it basically send a action command and receive response command
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- onError ↔ Function
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- slow → int
-
slow define slow network in ms
final
- timeout → int
-
timeout define request timeout in ms
final
- url ↔ String
-
remote service url
read / write
Methods
-
newObjectByID(
int id, List< int> bytes) → ProtoObject - find object by id
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
request(
ProtoObject obj) → Future - request send command and return result, return null when something wrong [...]
-
requestWithClient(
Client client, ProtoObject obj) → Future< Response> - requestWithClient send command using client [...]
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited