Static Method Summary
| Static Public Methods | ||
| public static |
fromJSON(json: Object): Notification |
|
| public static |
async getStatuses(): Enum This returns an enumeration of notification statuses |
|
| public static |
This returns an enumeration of notification types |
|
Constructor Summary
| Public Constructor | ||
| public |
A notification |
|
Member Summary
| Public Members | ||
| public get |
Gets the body |
|
| public get |
Obtains the category |
|
| public get |
The notification creationdate |
|
| public get |
The notification UUID |
|
| public get |
Returns past participle of the notification |
|
| public get |
Returns the plural of the notification. |
|
| public get |
The notification recipient |
|
| public get |
Obtains responder URL |
|
| public get |
The notification sender |
|
| public get |
The source ID. |
|
| public get |
|
|
| public set |
Sets the status of this notification |
|
| public get |
The target ID |
|
| public get |
|
|
Method Summary
| Public Methods | ||
| public |
async getIconURL(): string Obtains Icon URL |
|
| public |
async getPayload(): T Obtains the payload of the notification if possible. |
|
| public |
Gets the title |
|
Static Public Methods
public static fromJSON(json: Object): Notification source
Params:
| Name | Type | Attribute | Description |
| json | Object |
Public Constructors
public constructor() source
A notification
Params:
| Name | Type | Attribute | Description |
| options.id | string | Notification UUID |
|
| options.title | string | Title of ntoif |
|
| options.body | string | Body of notif |
|
| options.recipient | User | Delivery user |
|
| options.sender | User | User who sent |
|
| options.target | number | The ID of the target which triggered the notif |
|
| options.source | number | the ID of the source which caused the context for recieving the notification |
|
| options.category | string | The category based on a string for responder |
|
| options.dateCreated | Date | The date created |
|
| options.plural | string | Plural form of type |
|
| options.type | NotificationType | the notification type |
|
| options.status | NotificationStatus | Read status |
