yandex_music.queue.queue_item#
- class yandex_music.queue.queue_item.QueueItem(id: str, context: Context | None, modified: str, client: Client | None = None)#
Bases:
YandexMusicObject
Класс, представляющий очередь треков в списке очередей устройств.
- id#
Уникальный идентификатор очереди.
- Type:
str
- context#
Объект по которому построена очередь.
- Type:
yandex_music.Context
|None
- modified#
Дата последнего изменения.
- Type:
str
- client#
Клиент Yandex Music.
- Type:
yandex_music.Client
, optional
- classmethod de_json(data: dict, client: Client) QueueItem | None #
Десериализация объекта.
- Parameters:
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns:
Очередь в списке.
- Return type:
- classmethod de_list(data: dict, client: Client) List[QueueItem] #
Десериализация списка объектов.
- Parameters:
data (
list
) – Список словарей с полями и значениями десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns:
Список очередей всех устройств.
- Return type:
list
изyandex_music.QueueItem
- fetchQueue(*args, **kwargs) Queue | None #
Псевдоним для
fetch_queue
- async fetchQueueAsync(*args, **kwargs) Queue | None #
Псевдоним для
fetch_queue_async
- id: str#
- modified: str#