UNPKG

scheunemann-interfaces

Version:
35 lines (34 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotificationEntity = void 0; var enums_1 = require("../enums"); var notification_action_entity_1 = require("./notification-action.entity"); var NotificationEntity = /** @class */ (function () { // #endregion Properties (13) // #region Constructors (1) function NotificationEntity(data) { // #region Properties (13) this.action = new notification_action_entity_1.NotificationActionEntity(); this.category = enums_1.NotificationCategoryEnum.ALERT; this.createdAt = new Date(); this.data = ''; this.description = ''; this.expirationTime = 3600; this.id = ''; this.imageUrl = ''; this.priority = enums_1.NotificationPriorityEnum.HIGH; this.sound = true; this.status = enums_1.NotificationStatusEnum.DELIVERED; this.title = ''; this.topicName = ''; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return NotificationEntity; }()); exports.NotificationEntity = NotificationEntity;