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