2.1.1 Notification object
The notification object informs the client of a situation or event that has occurred.
The primary property of a notification is its type, which identifies the event. The other two properties (message and explanation) contain the text that can be presented to the user. These are provided as a convenience, since the client should be able to produce the text itself, based on the type property. The message and explanation texts are provided in the language of the user.
Fields
Field | Type | Description |
---|---|---|
timestamp optional |
Timestamp | The date the event was generated. Example value: 2010-03-12T15:47:31.123Z |
type required |
String | Uniquely identifies the type of the notification. The following events may be communicated by the API:
|
message required |
String | The message describing the event of this notification, in the user's language. Example value: You perfectly master this drill now. |
explanation required |
2.1.1 MarkupText object | An additional, more detailed description of the notification, in the user's language, with optional markup. |
icon optional |
2.1.1 Media object | An optional icon to represent the notification. |
Last updated on