From aa56ba5a7fd92fc9485991c878b17d30210e5ecb Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 23 Feb 2025 16:42:21 +0100 Subject: [PATCH] WIP --- src/commands/queue/playlist.rs | 5 ++++- src/commands/queue/playlistfind.rs | 3 +++ src/commands/queue/playlistid.rs | 3 +++ src/commands/queue/playlistinfo.rs | 3 +++ src/commands/queue/playlistsearch.rs | 3 +++ src/commands/queue/plchanges.rs | 3 +++ src/commands/queue/plchangesposid.rs | 2 ++ 7 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/commands/queue/playlist.rs b/src/commands/queue/playlist.rs index 91529ee..96b03be 100644 --- a/src/commands/queue/playlist.rs +++ b/src/commands/queue/playlist.rs @@ -5,8 +5,10 @@ use crate::{ pub struct Playlist; +pub type PlaylistResponse = Vec; + impl Command for Playlist { - type Response = (); + type Response = PlaylistResponse; const COMMAND: &'static str = "playlist"; fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> { @@ -17,6 +19,7 @@ impl Command for Playlist { fn parse_response( _parts: ResponseAttributes<'_>, ) -> Result { + // TODO: 1: https, 2: https, etc. unimplemented!() } } diff --git a/src/commands/queue/playlistfind.rs b/src/commands/queue/playlistfind.rs index f469158..042d901 100644 --- a/src/commands/queue/playlistfind.rs +++ b/src/commands/queue/playlistfind.rs @@ -44,6 +44,9 @@ impl Command for PlaylistFind { fn parse_response( _parts: ResponseAttributes<'_>, ) -> Result { + // Pos: + // Id: + // (Prio:) unimplemented!() } } diff --git a/src/commands/queue/playlistid.rs b/src/commands/queue/playlistid.rs index 290574a..c824ce9 100644 --- a/src/commands/queue/playlistid.rs +++ b/src/commands/queue/playlistid.rs @@ -25,6 +25,9 @@ impl Command for PlaylistId { fn parse_response( _parts: ResponseAttributes<'_>, ) -> Result { + // Pos: + // Id: + // (Prio:) unimplemented!() } } diff --git a/src/commands/queue/playlistinfo.rs b/src/commands/queue/playlistinfo.rs index 898a91c..b3e658f 100644 --- a/src/commands/queue/playlistinfo.rs +++ b/src/commands/queue/playlistinfo.rs @@ -28,6 +28,9 @@ impl Command for PlaylistInfo { fn parse_response( _parts: ResponseAttributes<'_>, ) -> Result { + // Pos: + // Id: + // (Prio:) unimplemented!() } } diff --git a/src/commands/queue/playlistsearch.rs b/src/commands/queue/playlistsearch.rs index 9400b15..ccf1672 100644 --- a/src/commands/queue/playlistsearch.rs +++ b/src/commands/queue/playlistsearch.rs @@ -44,6 +44,9 @@ impl Command for PlaylistSearch { fn parse_response( _parts: ResponseAttributes<'_>, ) -> Result { + // Pos: + // Id: + // (Prio:) unimplemented!() } } diff --git a/src/commands/queue/plchanges.rs b/src/commands/queue/plchanges.rs index f80e535..6f0d8a8 100644 --- a/src/commands/queue/plchanges.rs +++ b/src/commands/queue/plchanges.rs @@ -33,6 +33,9 @@ impl Command for PlChanges { fn parse_response( parts: ResponseAttributes<'_>, ) -> Result { + // Pos: + // Id: + // (Prio:) unimplemented!() } } diff --git a/src/commands/queue/plchangesposid.rs b/src/commands/queue/plchangesposid.rs index 445e74b..38c0718 100644 --- a/src/commands/queue/plchangesposid.rs +++ b/src/commands/queue/plchangesposid.rs @@ -33,6 +33,8 @@ impl Command for PlChangesPosId { fn parse_response( parts: ResponseAttributes<'_>, ) -> Result { + // cpos: + // Id: unimplemented!() } }