Project

General

Profile

1 61381 k.triantaf
export class Notification {
2
  actionType: string;
3
  services: string[];
4
  user: string;
5
  name: string;
6
  surname: string;
7
  title?: string;
8
  preview: string;
9
  message: string;
10
  stakeholder: string;
11
  stakeholderType: string;
12
  entity: string;
13
  entityType: string;
14
  date: Date;
15
  groups: string[];
16
  read: boolean  = false;
17
  _id: string;
18
19
20
  constructor(actionType: string, services: string[], message: string, entityType: string) {
21
    this.actionType = actionType;
22
    this.services = services;
23
    this.message = message;
24
    this.entityType = entityType;
25
  }
26
}
27
28
export interface NotificationUser {
29
  _id: string,
30
  read: string[]
31
}