'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * Licensed Materials - Property of IBM * IBM Business Analytics (C) Copyright IBM Corp. 2019 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['../../../lib/@waca/dashboard-common/dist/core/APIFactory', './api/NotificationAPI'], function (APIFactory, NotificationAPI) { var Notification = function () { function Notification(options) { _classCallCheck(this, Notification); this.dashboard = options.features['API']; this._api = APIFactory.createAPI(this, [NotificationAPI]); } Notification.prototype.getAPI = function getAPI() { return this._api; }; Notification.prototype.setMessage = function setMessage(message) { this.dashboard.showToast(message); }; return Notification; }(); return Notification; }); //# sourceMappingURL=Notification.js.map