public method IO2GMessagesTableResponseReader.getRow
Brief
Gets a row from the Messages table.
Declaration | ||||
|
Parameters | |
index |
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 Messages table [hide]
// Get messages information O2G2Ptr<IO2GResponse> messagesResponse = loginRules->getTableRefreshResponse(Messages); O2G2Ptr<IO2GResponseReaderFactory> responseFactory = session->getResponseReaderFactory(); if (responseFactory) { O2G2Ptr<IO2GMessagesTableResponseReader> messagesReader = responseFactory->createMessagesTableReader(messagesResponse); for (int i = 0; i < messagesReader->size(); ++i) { O2G2Ptr<IO2GMessageRow> message = messagesReader->getRow(i); std::cout << "From:= " << message->getFrom() << " Subject = " << message.getSubject() << " Text = " << message.getText() << std::endl; } }
Declared in IO2GMessagesTableResponseReader