yandex_music.playlist.brand¶
- class yandex_music.playlist.brand.Brand(image: str, background: str, reference: str, pixels: List[str], theme: str, playlist_theme: str, button: str, client: Client | None = None)¶
Bases:
YandexMusicObject
Класс, представляющий бренд плейлиста.
Note
Отслеживание просмотров на сторонник сервисах бренда, рекомендация следующего контента.
- image¶
Ссылка на изображение.
- Type:
str
- background¶
Цвет заднего фона.
- Type:
str
- reference¶
URI ссылка на содержимое.
- Type:
str
- pixels¶
Ссылки на gif изображения для отслеживания просмотров (web beacon).
- Type:
list
изstr
- theme¶
Тема оформления.
- Type:
str
- playlist_theme¶
Тема плейлиста TODO.
- Type:
str
- button¶
Текст кнопки.
- Type:
str
- client¶
Клиент Yandex Music.
- Type:
yandex_music.Client
, optional
- background: str¶
- button: str¶
- classmethod de_json(data: dict, client: Client) Brand | None ¶
Десериализация объекта.
- Parameters:
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns:
Бренд плейлиста.
- Return type:
- image: str¶
- pixels: List[str]¶
- playlist_theme: str¶
- reference: str¶
- theme: str¶