feat: add artist radio
This commit is contained in:
parent
fe76b2ac66
commit
53bdd5f0d2
16 changed files with 56 additions and 5 deletions
|
|
@ -5,7 +5,7 @@ use crate::serializer::text::Text;
|
|||
|
||||
use super::{
|
||||
music_item::{
|
||||
Grid, ItemSection, MusicThumbnailRenderer, SimpleHeader, SingleColumnBrowseResult,
|
||||
Button, Grid, ItemSection, MusicThumbnailRenderer, SimpleHeader, SingleColumnBrowseResult,
|
||||
},
|
||||
SectionList, Tab,
|
||||
};
|
||||
|
|
@ -41,6 +41,9 @@ pub(crate) struct MusicHeaderRenderer {
|
|||
#[serde(default)]
|
||||
#[serde_as(as = "DefaultOnError")]
|
||||
pub share_endpoint: Option<ShareEndpoint>,
|
||||
#[serde(default)]
|
||||
#[serde_as(as = "DefaultOnError")]
|
||||
pub start_radio_button: Option<Button>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
|
|||
|
|
@ -320,14 +320,14 @@ pub(crate) struct MusicCarouselShelfHeader {
|
|||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub(crate) struct MusicCarouselShelfHeaderRenderer {
|
||||
pub more_content_button: Option<MoreContentButton>,
|
||||
pub more_content_button: Option<Button>,
|
||||
#[serde(default)]
|
||||
pub title: TextComponents,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub(crate) struct MoreContentButton {
|
||||
pub(crate) struct Button {
|
||||
pub button_renderer: ButtonRenderer,
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue