import { assert } from "../../core/assert.js";
import ObservedValue from '../../core/model/ObservedValue.js';

/**
 * @class
 */
export class Notification {
    /**
     *
     * @param {string} title
     * @param {string} description
     * @param {string} image URL to image
     * @param {string[]} classList
     * @constructor
     */
    constructor({ title = "", description = "", image = "", classList = [] }) {
        assert.isArray(classList, 'classList');

        this.title = title;

        this.description = description;

        this.image = new ObservedValue(image);

        this.classList = classList;
    }
}


/**
 * @readonly
 * @type {boolean}
 */
Notification.prototype.isNotification = true;
