mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
feat: set up backend
This commit is contained in:
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
import {
|
||||
Playlist
|
||||
} from '../../dtype/file';
|
||||
import {
|
||||
Response
|
||||
} from 'express';
|
||||
|
||||
export interface Room {
|
||||
'playlist': Playlist;
|
||||
'playing': boolean;
|
||||
'index': number;
|
||||
'start': number;
|
||||
'token': string;
|
||||
'lastUpdate': number;
|
||||
|
||||
/**
|
||||
* This is used to determine if the playlist needs to be sent in polling mode
|
||||
*/
|
||||
'lastPlaylistUpdate': number;
|
||||
|
||||
'clients': Response[]
|
||||
}
|
||||
|
||||
export interface RoomStore {
|
||||
[id: string]: Room
|
||||
}
|
||||
Reference in New Issue
Block a user