Add RoomWidgetUpdateSongEvent

This commit is contained in:
Bill 2021-08-16 01:44:22 -04:00
parent 16fb31b4bb
commit 856d0eea6c
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,35 @@
import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent';
export class RoomWidgetUpdateSongEvent extends RoomWidgetUpdateEvent
{
public static PLAYING_CHANGED: string = 'RWUSE_PLAYING_CHANGED';
public static DATA_RECEIVED: string = 'RWUSE_DATA_RECEIVED';
private _songId: number;
private _songName: string;
private _songAuthor: string;
constructor(type: string, songId: number, songName: string, songAuthor: string)
{
super(type);
this._songId = songId;
this._songName = songName;
this._songAuthor = songAuthor;
}
public get songId(): number
{
return this._songId;
}
public get songName(): string
{
return this._songName;
}
public get songAuthor(): string
{
return this._songAuthor;
}
}

View File

@ -19,6 +19,7 @@ export * from './RoomWidgetUpdateInfostandPetEvent';
export * from './RoomWidgetUpdateInfostandRentableBotEvent';
export * from './RoomWidgetUpdateInfostandUserEvent';
export * from './RoomWidgetUpdateRentableBotChatEvent';
export * from './RoomWidgetUpdateSongEvent';
export * from './RoomWidgetUpdateUserDataEvent';
export * from './RoomWidgetUseProductBubbleEvent';
export * from './UseProductItem';