nitro-react/src/events/notification-center/NotificationBubbleEvent.ts
2021-08-22 01:00:05 -04:00

42 lines
939 B
TypeScript

import { NitroEvent } from '@nitrots/nitro-renderer';
export class NotificationBubbleEvent extends NitroEvent
{
public static NEW_BUBBLE: string = 'NNBE_NEW_BUBBLE';
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;
}
}