yandex_music.rotor.rotor_settings#
- class yandex_music.rotor.rotor_settings.RotorSettings(language: str, diversity: str, mood: int | None = None, energy: int | None = None, mood_energy: str | None = None, client: Client | None = None)#
Bases:
YandexMusicObject
Класс, представляющий настройки станции.
Note
Поля energy, mood используются в старых настройках (settings1).
Значения mood_energy: fun, active, calm, sad, all.
Значения diversity: favorite, popular, discover, default.
Значения language: not-russian, russian, any.
- language#
Язык.
- Type:
str
- diversity#
Разнообразие (треки).
- Type:
str
- mood#
Настроение (старое).
- Type:
int
, optional
- energy#
Энергичное.
- Type:
int
, optional
- mood_energy#
Настроение.
- Type:
str
, optional
- client#
Клиент Yandex Music.
- Type:
yandex_music.Client
, optional
- classmethod de_json(data: dict, client: Client) RotorSettings | None #
Десериализация объекта.
- Parameters:
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns:
Настройки станции.
- Return type:
- diversity: str#
- energy: int | None = None#
- language: str#
- mood: int | None = None#
- mood_energy: str | None = None#