Commands.ts 746 Bytes
Newer Older
yogevbd's avatar
yogevbd committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import * as _ from 'lodash';
import { NativeCommandsSender } from '../adapters/NativeCommandsSender';
import { Notification } from '../interfaces/Notification';

export class Commands {
  constructor(
    private readonly nativeCommandsSender: NativeCommandsSender
  ) {}

  public sendLocalNotification(notification: Notification) {
    const notificationId = 'id';
    const result = this.nativeCommandsSender.sendLocalNotification(notification, notificationId);
    return result;
  }

  public getInitialNotification() {
    const result = this.nativeCommandsSender.getInitialNotification();
    return result;
  }
  
  public requestPermissions() {
    const result = this.nativeCommandsSender.requestPermissions();
    return result;
  }
}