mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-10-24 03:33:09 +02:00
42 lines
939 B
TypeScript
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;
|
||
|
}
|
||
|
}
|