yandex_music.shot.shot_type#

class yandex_music.shot.shot_type.ShotType(id: str, title: str, client: Optional[Client] = None)#

Bases: YandexMusicObject

Класс, представляющий тип шота от Алисы.

id#

Уникальный идентификатор типа.

Type

str

title#

Заголовок шота.

Type

str

client#

Клиент Yandex Music.

Type

yandex_music.Client, optional

client: Optional[Client] = None#
classmethod de_json(data: dict, client: Client) Optional[ShotType]#

Десериализация объекта.

Parameters
  • data (dict) – Поля и значения десериализуемого объекта.

  • client (yandex_music.Client, optional) – Клиент Yandex Music.

Returns

Тип шота от Алисы.

Return type

yandex_music.ShotType

id: str#
title: str#