static public field O2GResponseType.CreateOrderResponse
Brief
The constant represents a type of a response to a request for an order creation.
Details
An order creation is a several-step process.
First, you must assign the Constants.Commands.CreateOrder
value to the O2GRequestParamsEnum.Command parameter by using the
O2GValueMap.setString method. For example,
valueMap.setString(O2GRequestParamsEnum.Command, Constants.Commands.CreateOrder);
Also, you must populate the rest of the O2GValueMap parameters as described in the Create Order section.
Then, you must create a request by passing the value map as an argument to the
O2GRequestFactory
.createOrderRequest
method. For example,
O2GRequest request = requestFactory.createOrderRequest(valueMap);
And finally, you must send the request by using the O2GSession.sendRequest method.
For example,
mSession.sendRequest(request);
The response to this request is of the CreateOrderResponse
type. An instance of the
O2GResponse
class is the response
parameter in your implementation of the
IO2GResponseListener
.onRequestCompleted
method.
To process the contents of a response object of the CreateOrderResponse
type, use an instance of the O2GOrderResponseReader class.
Declared in O2GResponseType