Class RequestEngine<SuccessData, FailData, ErrorData, SendData>
The Request Engine base class. Every Request Engine class should extend this class.
There are four required properties or methods to be implemented:
member
isRequestEngineClass - should be a static get property that always returns true.
member
environment - should be a static get property that indicates which environment the engine is designed for.
member
environment - should be a get property that indicates which environment the engine is designed for.
member
sendRequest - should be a method that actually handle the request, send request described by this._options,
then invoke this._resolve or this._reject according to the response.
The Request Engine base class. Every Request Engine class should extend this class.
There are four required properties or methods to be implemented:
isRequestEngineClass - should be a
static getproperty that always returnstrue.environment - should be a
static getproperty that indicates which environment the engine is designed for.environment - should be a
getproperty that indicates which environment the engine is designed for.sendRequest - should be a
methodthat actually handle the request, send request described bythis._options, then invokethis._resolveorthis._rejectaccording to the response.