commands: add response types for multiple commands

This commit is contained in:
2025-12-08 00:44:37 +09:00
parent 7132a526c5
commit 80c36d033d
7 changed files with 84 additions and 8 deletions

View File

@@ -1,4 +1,7 @@
use serde::{Deserialize, Serialize};
use crate::{
Uri,
commands::{Command, CommandResponse, ResponseParserError, empty_command_request},
response_tokenizer::ResponseAttributes,
};
@@ -7,7 +10,8 @@ pub struct Playlist;
empty_command_request!(Playlist, "playlist");
pub struct PlaylistResponse();
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PlaylistResponse(Vec<Uri>);
impl CommandResponse<'_> for PlaylistResponse {
fn into_response_enum(self) -> crate::Response {