notification.android.js 328 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/** A wrapper to align Android with iOS in terms on notification structure. */
export default class NotificationAndroid {

  constructor(notification) {
    this.data = notification;
  }

  getData() {
    return this.data;
  }

  getTitle() {
    return this.data.title;
  }

  getMessage() {
    return this.data.body;
  }
}