core.notification_2
Home > @engagespot/core > Notification_2
Notification_2 class
Signature:export default class Notification implements NotificationItem
Implements: NotificationItem
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(client, options) | Constructs a new instance of the Notification class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| _client | Engagespot | ||
| clickedAt? | string | null | (Optional) | |
| createdAt? | string | null | (Optional) | |
| icon? | string | null | (Optional) | |
| id | string | ||
| message? | string | null | (Optional) | |
| seenAt? | string | null | (Optional) | |
| title | string | ||
| url? | string | null | (Optional) |
Methods
| Method | Modifiers | Description |
|---|---|---|
| delete() | Deletes a Notification | |
| fetch() | Fetches this notification & also marks this notification as seen | |
| markAsClicked() | Marks this notification as clicked |