yandex_music.pager#
- class yandex_music.pager.Pager(total: int, page: int, per_page: int, client: Client | None = None)#
Bases:
YandexMusicObject
Класс, представляющий пагинацию.
- total#
Всего треков.
- Type:
int
- page#
Номер страницы.
- Type:
int
- per_page#
Количество треков на странице.
- Type:
int
- client#
Клиент Yandex Music.
- Type:
yandex_music.Client
, optional
- classmethod de_json(data: dict, client: Client) Pager | None #
Десериализация объекта.
- Parameters:
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns:
Пагинация.
- Return type:
- page: int#
- per_page: int#
- total: int#