yandex_music.rotor.sequence¶
- class yandex_music.rotor.sequence.Sequence(type: str, track: Track | None, liked: bool, client: ClientType | None = None)¶
Bases:
YandexMusicModel
Класс, представляющий звено последовательности.
Note
Известные значения поля type_: track. Возможно есть ad.
- type¶
Тип звена.
- Type:
str
- track¶
Трек.
- Type:
yandex_music.Track
|None
- liked¶
Связанное ли.
- Type:
bool
- client¶
Клиент Yandex Music.
- Type:
yandex_music.Client
, optional
- client: ClientType | None = None¶
- classmethod de_json(data: JSONType, client: ClientType) Sequence | None ¶
Десериализация объекта.
- Parameters:
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns:
Звено последовательности.
- Return type:
- liked: bool¶
- type: str¶