public method O2GTradesTableResponseReader.getRow

Brief

Gets a row from the Trades table.

Declaration
C#
O2GTradeRow  getRow (int index)

Parameters
index

The index of the row. The index must be between 0 and Count - 1.

Details

If the row is not found, the method returns null.

Example

Get rows from the Trades table [hide]

    O2GResponseReaderFactory factory = mSession.getResponseReaderFactory();
    if (factory != null)
    {
        O2GLoginRules loginRules = mSession.getLoginRules();
        O2GResponse tradesResponse = loginRules.getTableRefreshResponse(O2GTableType.Trades);
        O2GTradesTableResponseReader reader = factory.createTradesTableReader(tradesResponse);
        for (int i = 0; i < reader.Count; i++)
        {
            O2GTradeRow row = reader.getRow(i);
            Console.WriteLine("TradeID={0}, OfferID={1}, Amount={2}", row.TradeID, row.OfferID, row.Amount);
        }
    }

Declared in O2GTradesTableResponseReader

back