getUserNotifications
Some tooltip text!
• 1 minute to read
• 1 minute to read
Description
Will retrieve all notifications to the current user that has been generated since the last call to this method, from this or any other client application.
In parameters
| Parameter | Description |
|---|---|
| sessionKey | A valid session key |
| notificationKey | A subscription key retrieved by the allocUserNotification() method |
Out parameters
| Parameter | Description |
|---|---|
| errorCode | See list of codes |
| userNotifications | All notifications with the following fields: type (of notification createdBy (the ID of the user that generated this notification) ticketId (the ticketId associated with this notification if any) message (the text message) |
Example
ticket.ticketService ticketService = new ticket.ticketService();
string sessionKey;
string errorCode = ticketService.login("egon", "norges bank", out sessionKey);
if (errorCode.Equals("0"))
{
string notifyKey;
allocUserNotifications(sessionKey, "MyClient",out notifyKey);
ticket.NotificationStruct[] notifications;
getUserNotfications(sessionKey, notifyKey, out notifications);
}