2023-07-11 09:53:08 +03:00
|
|
|
export type TNotificationItem = {
|
|
|
|
code: string
|
|
|
|
text: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export class NotificationItem implements TNotificationItem {
|
|
|
|
code: string
|
|
|
|
text: string
|
|
|
|
|
2023-10-03 11:18:30 +03:00
|
|
|
constructor(args: { text: string, code?: string }) {
|
2023-07-11 09:53:08 +03:00
|
|
|
this.text = args.text
|
2023-10-03 11:18:30 +03:00
|
|
|
this.code = args.code || 'info'
|
2023-07-11 09:53:08 +03:00
|
|
|
}
|
|
|
|
}
|