static public field O2GResponseType.GetLastOrderUpdate

Brief

The constant represents the type of a response to a request for the current state of an order.

Details

A request to get the current order state is a several step process.
First, you must assign the Constants.Commands.GetLastOrderUpdate value to the O2GRequestParamsEnum.Command parameter by using the O2GValueMap.setString method. For example,

valueMap.setString(O2GRequestParamsEnum.Command, Constants.Commands.GetLastOrderUpdate);

You must also populate the rest of the O2GValueMap parameters as described in the Get Last Order Update 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 GetLastOrderUpdate 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 GetLastOrderUpdate type, use an instance of the O2GLastOrderUpdateResponseReader class.

Declared in O2GResponseType

back