Skip to main content
Version: 1.4.x

core.notification_2

Home > @engagespot/core > Notification_2

Notification_2 class

Signature:
export default class Notification implements NotificationItem

Implements: NotificationItem

Constructors

ConstructorModifiersDescription
(constructor)(client, options)Constructs a new instance of the Notification class

Properties

PropertyModifiersTypeDescription
_clientEngagespot
clickedAt?string | null(Optional)
createdAt?string | null(Optional)
icon?string | null(Optional)
idstring
message?string | null(Optional)
seenAt?string | null(Optional)
titlestring
url?string | null(Optional)

Methods

MethodModifiersDescription
delete()Deletes a Notification
fetch()Fetches this notification & also marks this notification as seen
markAsClicked()Marks this notification as clicked