Packagecom.mi.rs
Interfacepublic interface ICommandSequence

This interface is used by RSService in process commands callbacks to accept a sequence of commands from the application that the service will then process. A command sequence is always associated with a single IStateData object which defines the state these commands will be executed in on the server. The IStateData is determined when the process commands callback is added by a call to IService.addCallback().



Public Properties
 PropertyDefined By
  service : IService
[read-only] The service that is associated with this command sequence.
ICommandSequence
  stateData : IStateData
[read-only] The IStateData associated with the callback.
ICommandSequence
Public Methods
 MethodDefined By
  
addCommand(cmd:ICommand, responseHandler:Function = null):void
Adds a command to the sequence of commands that needs to be processed.
ICommandSequence
Property Detail
serviceproperty
service:IService  [read-only]

The service that is associated with this command sequence.


Implementation
    public function get service():IService
stateDataproperty 
stateData:IStateData  [read-only]

The IStateData associated with the callback. All commands added using this callback will be executed in the context of the state specified by this state data instance.


Implementation
    public function get stateData():IStateData
Method Detail
addCommand()method
public function addCommand(cmd:ICommand, responseHandler:Function = null):void

Adds a command to the sequence of commands that needs to be processed.

Parameters

cmd:ICommand — The command to process.
 
responseHandler:Function (default = null) — The optional function that will be called when the command has been processed. The callback function must have the following signature: function responseHandler(resp:Response):void