getBuyTicketInformation method
Retrieve buy-ticket information by index.
Parameters
index: Zero-based index of the buy-ticket information to retrieve.
Returns
- PTBuyTicketInformation: The buy-ticket information object, or
nullwhen the index is out of bounds.
See also:
- countBuyTicketInformation - get the number of available buy-ticket information entries.
Implementation
PTBuyTicketInformation? getBuyTicketInformation(final int index) {
final OperationResult resultString = objectMethod(
pointerId,
'PTRoute',
'getBuyTicketInformation',
args: index,
);
if (resultString['result'] == -1) {
return null;
}
return PTBuyTicketInformation(resultString['result']);
}