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