yandex_music.playlist.open_graph_data#
- class yandex_music.playlist.open_graph_data.OpenGraphData(title: str, description: str, image: Cover, client: Optional[Client] = None)#
Bases:
YandexMusicObject
Класс, представляющий данные для Open Graph.
- title#
Заголовок.
- Type
str
- description#
Описание.
- Type
str
- image#
Изображение.
- Type
yandex_music.Cover
- client#
Клиент Yandex Music.
- Type
yandex_music.Client
, optional
- classmethod de_json(data: dict, client: Client) Optional[OpenGraphData] #
Десериализация объекта.
- Parameters
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns
Данные для Open Graph.
- Return type
yandex_music.OpenGraphData
- description: str#
- title: str#