yandex_music.pager#

class yandex_music.pager.Pager(total: int, page: int, per_page: int, client: Optional[Client] = None)#

Bases: YandexMusicObject

Класс, представляющий пагинатор.

total#

Всего треков.

Type

int

page#

Номер страницы.

Type

int

per_page#

Количество треков на странице.

Type

int

client#

Клиент Yandex Music.

Type

yandex_music.Client, optional

client: Optional[Client] = None#
classmethod de_json(data: dict, client: Client) Optional[Pager]#

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

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

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

Returns

Пагинатор.

Return type

yandex_music.Pager

page: int#
per_page: int#
total: int#