1
use serde::{Deserialize, Serialize};
2

            
3
use crate::{
4
    commands::{Command, CommandResponse, ResponseParserError, empty_command_request},
5
    response_tokenizer::ResponseAttributes,
6
    types::Uri,
7
};
8

            
9
pub struct Playlist;
10

            
11
empty_command_request!(Playlist, "playlist");
12

            
13
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
14
pub struct PlaylistResponse(Vec<Uri>);
15

            
16
impl PlaylistResponse {
17
    pub fn new(items: Vec<Uri>) -> Self {
18
        PlaylistResponse(items)
19
    }
20
}
21

            
22
impl CommandResponse for PlaylistResponse {
23
    fn parse(_parts: ResponseAttributes<'_>) -> Result<Self, ResponseParserError> {
24
        unimplemented!()
25
    }
26
}
27

            
28
impl Command for Playlist {
29
    type Request = PlaylistRequest;
30
    type Response = PlaylistResponse;
31
}