yandex_music.rotor.value#
- class yandex_music.rotor.value.Value(value: str, name: str, client: Optional[Client] = None)#
Bases:
YandexMusicObject
Класс, представляющий значение(переменную).
- value#
Значение.
- Type
str
- name#
Название.
- Type
str
- client#
Клиент Yandex Music.
- Type
yandex_music.Client
, optional
- classmethod de_json(data: dict, client: Client) Optional[Value] #
Десериализация объекта.
- Parameters
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns
Значение.
- Return type
yandex_music.Value
- classmethod de_list(data: dict, client: Client) List[Value] #
Десериализация списка объектов.
- Parameters
data (
list
) – Список словарей с полями и значениями десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns
Значения.
- Return type
list
изyandex_music.Value
- name: str#
- value: str#