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
context: Context | None
classmethod de_json(data: JSONType, client: ClientType) QueueItem | None

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

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

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

Returns:

Очередь в списке.

Return type:

yandex_music.QueueItem

fetchQueue(*args: Any, **kwargs: Any) Queue | None

Псевдоним для fetch_queue

async fetchQueueAsync(*args: Any, **kwargs: Any) Queue | None

Псевдоним для fetch_queue_async

fetch_queue(*args: Any, **kwargs: Any) Queue | None

Сокращение для:

client.queue(id, *args, **kwargs)

async fetch_queue_async(*args: Any, **kwargs: Any) Queue | None

Сокращение для:

await client.queue(id, *args, **kwargs)

id: str
modified: str