NAOqi Core - Overview | API | NotificationInfo
#include <alproxies/notificationinfo.h>
Expose all information required for a notification.
Constructor using a set of values to create a NotificationInfo.
Constructor using an ALValue to create the NotificationInfo (see ALValue NotificationInfo).
Returns: | The message of the notification. |
---|
The severity. 3 levels of severity:
Returns: | The severity of the notification. |
---|
If the value is true, once read, the notification is removed from the list of pending notifications.
Returns: | True if, once read, the notification must be removed from the list of pending notifications, false otherwise. |
---|
Converts the NotificationInfo object as an ALValue. ALValue NotificationInfo
Returns: | The ALValue representation of the NotificationInfo object. |
---|
The ALValue NotificationInfo is an array of n-pair (key, value).
In order to exchange this object with other modules, the Notification object can be represented as ALValue with the following structure:
key | value type | default value |
---|---|---|
“id” | int | -1 |
“message” | string | “” |
“severity” | string | “info” |
“removeOnRead” | bool | true |
Empty values will take default value.