1 Commits

Author SHA1 Message Date
aa56ba5a7f WIP 2025-02-25 21:36:34 +01:00
7 changed files with 21 additions and 1 deletions

@ -5,8 +5,10 @@ use crate::{
pub struct Playlist; pub struct Playlist;
pub type PlaylistResponse = Vec<String>;
impl Command for Playlist { impl Command for Playlist {
type Response = (); type Response = PlaylistResponse;
const COMMAND: &'static str = "playlist"; const COMMAND: &'static str = "playlist";
fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> { fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> {
@ -17,6 +19,7 @@ impl Command for Playlist {
fn parse_response( fn parse_response(
_parts: ResponseAttributes<'_>, _parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> { ) -> Result<Self::Response, ResponseParserError> {
// TODO: 1: https, 2: https, etc.
unimplemented!() unimplemented!()
} }
} }

@ -44,6 +44,9 @@ impl Command for PlaylistFind {
fn parse_response( fn parse_response(
_parts: ResponseAttributes<'_>, _parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> { ) -> Result<Self::Response, ResponseParserError> {
// Pos:
// Id:
// (Prio:)
unimplemented!() unimplemented!()
} }
} }

@ -25,6 +25,9 @@ impl Command for PlaylistId {
fn parse_response( fn parse_response(
_parts: ResponseAttributes<'_>, _parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> { ) -> Result<Self::Response, ResponseParserError> {
// Pos:
// Id:
// (Prio:)
unimplemented!() unimplemented!()
} }
} }

@ -28,6 +28,9 @@ impl Command for PlaylistInfo {
fn parse_response( fn parse_response(
_parts: ResponseAttributes<'_>, _parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> { ) -> Result<Self::Response, ResponseParserError> {
// Pos:
// Id:
// (Prio:)
unimplemented!() unimplemented!()
} }
} }

@ -44,6 +44,9 @@ impl Command for PlaylistSearch {
fn parse_response( fn parse_response(
_parts: ResponseAttributes<'_>, _parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> { ) -> Result<Self::Response, ResponseParserError> {
// Pos:
// Id:
// (Prio:)
unimplemented!() unimplemented!()
} }
} }

@ -33,6 +33,9 @@ impl Command for PlChanges {
fn parse_response( fn parse_response(
parts: ResponseAttributes<'_>, parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> { ) -> Result<Self::Response, ResponseParserError> {
// Pos:
// Id:
// (Prio:)
unimplemented!() unimplemented!()
} }
} }

@ -33,6 +33,8 @@ impl Command for PlChangesPosId {
fn parse_response( fn parse_response(
parts: ResponseAttributes<'_>, parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> { ) -> Result<Self::Response, ResponseParserError> {
// cpos:
// Id:
unimplemented!() unimplemented!()
} }
} }