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

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

            
9
empty_command_request!(Playlist, "playlist");
10

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

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

            
20
impl CommandResponse for PlaylistResponse {
21
    type Request = PlaylistRequest;
22

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

            
27
    fn serialize(&self) -> Vec<u8> {
28
        unimplemented!("response serialization is not yet implemented for PlaylistResponse")
29
    }
30
}