1
use crate::commands::{
2
    Command, Request, RequestParserResult, ResponseAttributes, ResponseParserError,
3
};
4

            
5
pub struct ListPlaylists;
6

            
7
impl Command for ListPlaylists {
8
    type Response = ();
9
    const COMMAND: &'static str = "listplaylists";
10

            
11
    fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> {
12
        debug_assert!(parts.next().is_none());
13
        Ok((Request::ListPlaylists, ""))
14
    }
15

            
16
    fn parse_response(
17
        parts: ResponseAttributes<'_>,
18
    ) -> Result<Self::Response, ResponseParserError> {
19
        unimplemented!()
20
    }
21
}