Notification.js 639 Bytes
Newer Older
冷佳娟's avatar
冷佳娟 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Notification {
    constructor(payload) {
        this._data = payload;
        this.identifier = this._data.identifier;
    }
    get data() {
        return this._data;
    }
    get title() {
        return this._data.title;
    }
    get body() {
        return this._data.body;
    }
    get sound() {
        return this._data.sound;
    }
    get badge() {
        return this._data.badge;
    }
    get type() {
        return this._data.type;
    }
    get thread() {
        return this._data.thread;
    }
}
exports.Notification = Notification;