Upgrade with history search
This commit is contained in:
@@ -3,8 +3,10 @@ import {
|
||||
ChatMessage,
|
||||
CreatePlaylist,
|
||||
CurrentQueue,
|
||||
CurrentPlayerControl,
|
||||
CurrentSong,
|
||||
GetPlaylist,
|
||||
HistoryContent,
|
||||
Join,
|
||||
ListenerList,
|
||||
Playlists,
|
||||
@@ -13,6 +15,7 @@ import {
|
||||
QueueSong, RemoveFromAutoPlay, RemovePlaylist,
|
||||
RemoveSongFromPlaylist,
|
||||
ReorderSong,
|
||||
SearchHistory,
|
||||
SearchSong,
|
||||
SearchSongResult,
|
||||
SendChatMessage, Shuffle,
|
||||
@@ -40,12 +43,18 @@ export default function parseMessage(message: string): StuenMessage | null {
|
||||
return new SearchSong(data.query);
|
||||
case 'SearchSongResult':
|
||||
return new SearchSongResult(data.result);
|
||||
case 'SearchHistory':
|
||||
return new SearchHistory(data.query);
|
||||
case 'HistoryContent':
|
||||
return new HistoryContent(data.result);
|
||||
case 'QueueSong':
|
||||
return new QueueSong(data.song);
|
||||
case 'CurrentQueue':
|
||||
return new CurrentQueue(data.songs)
|
||||
case 'CurrentSong':
|
||||
return new CurrentSong(data.song);
|
||||
case 'CurrentPlayerControl':
|
||||
return new CurrentPlayerControl(data.playerControl);
|
||||
case 'UnqueueSong':
|
||||
return new UnqueueSong(data.position, data.all);
|
||||
case 'ReorderSong':
|
||||
|
||||
Reference in New Issue
Block a user