public method O2GOffersTableResponseReader.getRow

Brief

Gets a row from the Offers table.

Declaration
C#
O2GOfferRow  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 Offers table [hide]

    O2GResponseReaderFactory factory = mSession.getResponseReaderFactory();
    if (factory != null)
    {
        O2GLoginRules loginRules = mSession.getLoginRules();
        O2GResponse offersResponse = loginRules.getTableRefreshResponse(O2GTableType.Offers);
        O2GOffersTableResponseReader reader = factory.createOffersTableReader(offersResponse);
        for (int i = 0; i < reader.Count; i++)
        {
            O2GOfferRow row = reader.getRow(i);
            Console.WriteLine("OfferID={0}, Instrument={1}, Ask={2}, Bid={3}", row.OfferID, row.Instrument, row.Ask, row.Bid);
        }
    }

Declared in O2GOffersTableResponseReader

back