Compare commits
1 Commits
main
...
queue-resp
Author | SHA1 | Date | |
---|---|---|---|
aa56ba5a7f |
@ -5,8 +5,10 @@ use crate::{
|
||||
|
||||
pub struct Playlist;
|
||||
|
||||
pub type PlaylistResponse = Vec<String>;
|
||||
|
||||
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<Self::Response, ResponseParserError> {
|
||||
// TODO: 1: https, 2: https, etc.
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
@ -44,6 +44,9 @@ impl Command for PlaylistFind {
|
||||
fn parse_response(
|
||||
_parts: ResponseAttributes<'_>,
|
||||
) -> Result<Self::Response, ResponseParserError> {
|
||||
// Pos:
|
||||
// Id:
|
||||
// (Prio:)
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,9 @@ impl Command for PlaylistId {
|
||||
fn parse_response(
|
||||
_parts: ResponseAttributes<'_>,
|
||||
) -> Result<Self::Response, ResponseParserError> {
|
||||
// Pos:
|
||||
// Id:
|
||||
// (Prio:)
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,9 @@ impl Command for PlaylistInfo {
|
||||
fn parse_response(
|
||||
_parts: ResponseAttributes<'_>,
|
||||
) -> Result<Self::Response, ResponseParserError> {
|
||||
// Pos:
|
||||
// Id:
|
||||
// (Prio:)
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
@ -44,6 +44,9 @@ impl Command for PlaylistSearch {
|
||||
fn parse_response(
|
||||
_parts: ResponseAttributes<'_>,
|
||||
) -> Result<Self::Response, ResponseParserError> {
|
||||
// Pos:
|
||||
// Id:
|
||||
// (Prio:)
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
@ -33,6 +33,9 @@ impl Command for PlChanges {
|
||||
fn parse_response(
|
||||
parts: ResponseAttributes<'_>,
|
||||
) -> Result<Self::Response, ResponseParserError> {
|
||||
// Pos:
|
||||
// Id:
|
||||
// (Prio:)
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
@ -33,6 +33,8 @@ impl Command for PlChangesPosId {
|
||||
fn parse_response(
|
||||
parts: ResponseAttributes<'_>,
|
||||
) -> Result<Self::Response, ResponseParserError> {
|
||||
// cpos:
|
||||
// Id:
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user