2021-12-26 20:18:42 +00:00
|
|
|
use std::{fmt::Debug, ops::Deref};
|
2021-12-07 22:22:24 +00:00
|
|
|
|
|
|
|
use crate::util::from_repeated_message;
|
|
|
|
|
2021-12-26 20:18:42 +00:00
|
|
|
use librespot_core::FileId;
|
2021-12-07 22:22:24 +00:00
|
|
|
|
2021-12-26 20:18:42 +00:00
|
|
|
use librespot_protocol as protocol;
|
2021-12-07 22:22:24 +00:00
|
|
|
use protocol::metadata::VideoFile as VideoFileMessage;
|
|
|
|
|
2022-07-31 22:44:43 +00:00
|
|
|
#[derive(Debug, Clone, Default)]
|
2021-12-07 22:22:24 +00:00
|
|
|
pub struct VideoFiles(pub Vec<FileId>);
|
|
|
|
|
|
|
|
impl Deref for VideoFiles {
|
|
|
|
type Target = Vec<FileId>;
|
|
|
|
fn deref(&self) -> &Self::Target {
|
|
|
|
&self.0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
from_repeated_message!(VideoFileMessage, VideoFiles);
|