lib/notification/index.js
function Notification (payload) {
  this.encoding = "utf8";
  this.payload = {};
  this.compiled = false;

  this.aps = {};
  this.expiry = 0;
  this.priority = 10;

  if (payload) {
    for(let key in payload) {
      if (payload.hasOwnProperty(key)) {
        this[key] = payload[key];
      }
    }
  }
}
function Notification (payload) {
  this.encoding = "utf8";
  this.payload = {};
  this.compiled = false;

  this.aps = {};
  this.expiry = 0;
  this.priority = 10;

  if (payload) {
    for(let key in payload) {
      if (payload.hasOwnProperty(key)) {
        this[key] = payload[key];
      }
    }
  }
}
function Notification ( payload ) { this . encoding = "utf8" ; this . payload = { } ; this . compiled = false ; this . aps = { } ; this . expiry = 0 ; this . priority = 10 ; if ( payload ) { for ( let key in payload ) { if ( payload . hasOwnProperty ( key ) ) { this [ key ] = payload [ key ] ; } } } }
Create a notification
@constructor
Create a notification