Added new messages for returning users with playlists.

This commit is contained in:
Thomas Viesmose Birch
2024-05-04 13:17:06 +02:00
parent 00dedc1d85
commit 8760a3affc
6 changed files with 27 additions and 3 deletions
+8
View File
@@ -23,6 +23,7 @@ export type StuenMessages =
| Playlists
| GetPlaylist
| PlaylistSongs
| GetListenersWithPlaylists
| ToggleTag
| Shuffle
| RemoveFromAutoPlay
@@ -153,12 +154,19 @@ export class GetPlaylist extends StuenMessage {
super('GetPlaylist');
}
}
export class PlaylistSongs extends StuenMessage {
constructor(public playlist: Playlist) {
super('PlaylistSongs');
}
}
export class GetListenersWithPlaylists extends StuenMessage {
constructor() {
super('GetListenersWithPlaylists');
}
}
export class AddSongToPlaylist extends StuenMessage {
constructor(public song: Song, public playlist: string) {
super('AddSongToPlaylist');