public method O2GAccountsTableResponseReader.getRow
Brief
Gets a row from the Accounts table.
| Declaration | ||||
|
||||
| Parameters | |
iIndex |
The index of the row. The index must be between |
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