static public field O2GResponseType.GetOffers

Brief

The constant represents the type of a response to a request for initial offer information.

Details

If your application uses the IO2GTableManager, the Offers table is always loaded during the login process. This information is kept in an IO2GOffersTable object.

If your application does not use the IO2GTableManager, the initial offer information needs to be requested.
Depending on the trading server settings, the Offers table may or may not be loaded by the server automatically during the login process. To determine whether the table is loaded or not and what follow-up action is required to obtain the O2GResponseType.GetOffers response, use the returned value of the IO2GLoginRules.isTableLoadedByDefault method:

Returned Value

Follow-up action

true

Call the IO2GLoginRules.getTableRefreshResponse method. For example,

O2GResponse offersResponse = loginRules.getTableRefreshResponse(O2GTable::Offers);

The method returns an instance of the IO2GResponse class of the O2GResponseType.GetOffers type.

false

Create a request to get initial offer information by using the IO2GRequestFactory.createRefreshTableRequest method. For example,

O2GRequest request = requestFactory.createRefreshTableRequest(O2GTable::Offers);

In this case, an instance of the IO2GResponse class is the response parameter in your implementation of the IO2GResponseListener.onRequestCompleted method.

Declared in O2GResponseType

back