BnumNotification~BnumNotification(uid, title, category, param3)

Représente un notification et contient les fonctions utiles liés aux notifications.

new BnumNotification(uid, title, category, param3)

Parameters:
Name Type Description
uid string Id de la notification
title string Titre de la notification
category string Catégorie de la notification
param3 Object Données facultatives
Properties
Name Type Attributes Description
action module:BnumNotification~BnumNotificationAction <nullable>
Action à effectuer lorsqu'on clique sur la notification

Members

nullable action :BnumNotificationAction

Action de la notification

category :string

Cétagorie de la notification

created :number

Quand la notification a été créée

isread :boolean

Si la notification a été lue

local :boolean

Notification locale ou non

modified :number

Quand la notification a été modifiée

title :string

Titre de la notification

uid :string

Id de la notification

Methods

notify()

Ajoute la notification à la stack des notifications

static Notify(notification)

Affiche une notification
Parameters:
Name Type Description
notification module:BnumNotification~BnumNotification Notification à afficher

static _____GET____(what) → {module:BnumNotification~NotificationException|null}

Parameters:
Name Type Description
what string

static throw_exception(datas, message) → {module:BnumNotification~NotificationException}

Lance une exception liés aux notifications.
Parameters:
Name Type Description
datas *
message string