mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Add RoomWidgetUpdateSongEvent
This commit is contained in:
parent
16fb31b4bb
commit
856d0eea6c
35
src/views/room/events/RoomWidgetUpdateSongEvent.ts
Normal file
35
src/views/room/events/RoomWidgetUpdateSongEvent.ts
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
@ -19,6 +19,7 @@ export * from './RoomWidgetUpdateInfostandPetEvent';
|
|||||||
export * from './RoomWidgetUpdateInfostandRentableBotEvent';
|
export * from './RoomWidgetUpdateInfostandRentableBotEvent';
|
||||||
export * from './RoomWidgetUpdateInfostandUserEvent';
|
export * from './RoomWidgetUpdateInfostandUserEvent';
|
||||||
export * from './RoomWidgetUpdateRentableBotChatEvent';
|
export * from './RoomWidgetUpdateRentableBotChatEvent';
|
||||||
|
export * from './RoomWidgetUpdateSongEvent';
|
||||||
export * from './RoomWidgetUpdateUserDataEvent';
|
export * from './RoomWidgetUpdateUserDataEvent';
|
||||||
export * from './RoomWidgetUseProductBubbleEvent';
|
export * from './RoomWidgetUseProductBubbleEvent';
|
||||||
export * from './UseProductItem';
|
export * from './UseProductItem';
|
||||||
|
Loading…
Reference in New Issue
Block a user