NotificationEvents.ts 486 Bytes
Newer Older
1
import { Notification } from '../DTO/Notification';
2
import { NotificationActionResponse } from './NotificationActionResponse';
yogevbd's avatar
yogevbd committed
3

yogevbd's avatar
yogevbd committed
4
export interface Registered {
yogevbd's avatar
yogevbd committed
5 6 7
  deviceToken: string;
}

yogevbd's avatar
yogevbd committed
8 9 10 11 12 13 14 15 16 17 18 19
export interface RegistrationError {
  code: string;
  domain: string;
  localizedDescription: string;
}

export interface RegisteredPushKit {
  pushKitToken: string;
}

export interface NotificationResponse {
  identifier: string;
yogevbd's avatar
yogevbd committed
20
  notification: Notification;
yogevbd's avatar
yogevbd committed
21
  action?: NotificationActionResponse
yogevbd's avatar
yogevbd committed
22
}