class IO2GOrderResponseReader

Parents
IAddRef

Brief

A reader of a response belonging to the CreateOrderResponse type.

Details

IO2GOrderResponseReader can be created by IO2GResponseReaderFactory.createOrderResponseReader.
It is used to parse CreateOrderResponse response in the function in the function IO2GResponseListener.onRequestCompleted.

IO2GOrderResponseReader [hide]

 void ResponseListener::onRequestCompleted(const char *requestId, IO2GResponse  *response)
 {
    if (response->getType() == CreateOrderResponse)
    {
        O2G2Ptr<IO2GResponseReaderFactory> readerFactory = mSession->getResponseReaderFactory();
        if (readerFactory)
        {
            O2G2Ptr<IO2GOrderResponseReader> reader = readerFactory->createOrderResponseReader(response);
            mOrderID = reader->getOrderID();
        }
    }
 }

Public Methods

getOrderID

Gets the ID of the created order.

isUnderDealerIntervention

Dealer intervention flag.

back