nitro-react/src/events/notification-center/NotificationBubbleEvent.ts

42 lines
938 B
TypeScript
Raw Normal View History

2021-08-22 07:00:05 +02:00
import { NitroEvent } from '@nitrots/nitro-renderer';
export class NotificationBubbleEvent extends NitroEvent
{
2021-09-18 10:31:08 +02:00
public static NEW_BUBBLE: string = 'NBE_NEW_BUBBLE';
2021-08-22 07:00:05 +02:00
private _message: string;
private _notificationType: string;
private _imageUrl: string;
private _linkUrl: string;
constructor(message: string, notificationType: string, imageUrl: string, linkUrl: string)
{
super(NotificationBubbleEvent.NEW_BUBBLE);
this._message = message;
this._notificationType = notificationType;
this._imageUrl = imageUrl;
this._linkUrl = linkUrl;
}
public get message(): string
{
return this._message;
}
public get notificationType(): string
{
return this._notificationType;
}
public get imageUrl(): string
{
return this._imageUrl;
}
public get linkUrl(): string
{
return this._linkUrl;
}
}