getActiveTicketsStatus
Some tooltip text!
• 1 minute to read
• 1 minute to read
Description
Returns all active tickets for the user and their read/unread status.
In parameters
| Parameter | Description |
|---|---|
| sessionKey | A valid session key |
Out parameters
| Parameter | Description |
|---|---|
| errorCode | See list of codes |
| ticketStatusResult | An array containing the active tickets: ticketId readStatus – {1=green (read), 2=yellow(new info), 3=red(unread)} |
Example
ticket.ticketService ticketService = new ticket.ticketService();
string sessionKey;
string errorCode = ticketService.login("egon", "norges bank", out sessionKey);
if (errorCode.Equals("0"))
{
ticket.ActiveTicketsStruct[] tickets;
getActiveTicketsStatus(sessionKey, out tickets);
foreach(ticket.ActiveTicketsStruct i in tickets)
{
cout << "ticket ID:" << i.ticketId << endl;
cout << "read status:" << i.readStatus << endl;
}
}