class O2GGenericTableResponseReader

Brief

The class provides methods to read a stream of trading table rows coming from the trading server.

Details

The O2GGenericTableResponseReader is a generic class that provides methods to read responses to requests for initial trading tables information.
The O2GGenericTableResponseReader can be used to process the contents of the following response types: GET_OFFERS, GET_ACCOUNTS, GET_TRADES, GET_CLOSED_TRADES, GET_ORDERS, and GET_MESSAGES.

You can not create an instance of the class directly. You can only use the methods of the class on the following subclasses:
O2GOffersTableResponseReader
O2GAccountsTableResponseReader
O2GTradesTableResponseReader
O2GClosedTradesTableResponseReader
O2GOrdersTableResponseReader
O2GMessagesTableResponseReader
O2GTable.
Note: The O2GTable class is available only when your application uses the O2GTableManager. The usage of the O2GTable class is similar to the usage of the O2GGenericTableResponseReader class: it can not be instantiated directly and you can use its methods only on the following subclasses:
O2GOffersTable
O2GAccountsTable
O2GTradesTable
O2GClosedTradesTable
O2GOrdersTable
O2GMessagesTable
O2GSummaryTable

If initial trading table information is received as a response to the O2GLoginRules.getTableRefreshResponse request, you can process the response in the main thread of your program.
If initial trading table information is received as a response to the O2GRequestFactory.createRefreshTableRequest, you must process the response in your implementation of the IO2GResponseListener.onRequestCompleted method.

Example

Get initial accounts and trades information [show]

The namespace is com.fxcore2.

Public Methods

getCell

Gets the value of a cell.

getColumns

Gets an instance of the class that provides access to the list of table columns.

getGenericRow

Gets a row by its index.

getType

Gets the type of a trading table.

isCellValid

Checks whether the cell value can be used or not.

size

Gets the number of rows in the reader.

back