public method O2GAccountsTableResponseReader.getRow

Brief

Gets a row from the Accounts table.

Declaration
Java
O2GAccountRow  getRow (int iIndex)

Parameters
iIndex

The index of the row. The index must be between 0 and size() - 1.

Details

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

Example

Get rows from the Accounts table [hide]

    // Get accounts information
    O2GResponse accountsResponse = loginRules.getTableRefreshResponse(O2GTableType.ACCOUNTS);
    O2GResponseReaderFactory responseFactory = session.getResponseReaderFactory();
    if (responseFactory !=  null) {
        O2GAccountsTableResponseReader accountsReader = responseFactory.createAccountsTableReader(accountsResponse);
        for (int i = 0; i < accountsReader.size(); i++) {
            O2GAccountRow account = accountsReader.getRow(i);
            System.out.println("AccountID = " + account.getAccountID() +
                           " Balance = " +  account.getBalance() +
                           " UsedMargin = " + account.getUsedMargin());
        }
    }

Declared in O2GAccountsTableResponseReader

back