js/MFPSimplePushNotification.js
/* Licensed Materials - Property of IBM
* 5725-I43 (C) Copyright IBM Corp. 2018. All Rights Reserved.
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
/* author - Yash Soni | yashsoni21@in.ibm.com */
/**
* This class represents a MFPSimplePushNotification.
*/
class MFPSimplePushNotification {
/**
* @type {string}
*/
id;
/**
* @type {string}
*/
url;
/**
* @type {string}
*/
alert;
/**
* @type {Object}
*/
payload;
/**
* @ignore
*/
constructor() {
this.id = "";
this.url = "";
this.alert = "";
this.payload = {};
}
/**
* @returns {string} - The url.
*/
getUrl() {
return this.url;
}
/**
* @returns {string} - The alert msg.
*/
getAlert() {
return this.alert;
}
/**
* @returns {Object} - The payload object.
*/
getPayload() {
return this.payload;
}
}
export default MFPSimplePushNotification