yandex_music.rotor.value#

class yandex_music.rotor.value.Value(value: str, name: str, client: Client | None = None)#

Bases: YandexMusicObject

Класс, представляющий значение(переменную).

value#

Значение.

Type:

str

name#

Название.

Type:

str

client#

Клиент Yandex Music.

Type:

yandex_music.Client, optional

client: Client | None = None#
classmethod de_json(data: dict, client: Client) Value | None#

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

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

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

Returns:

Значение.

Return type:

yandex_music.Value

classmethod de_list(data: list, 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#