yandex_music.search.best#
- class yandex_music.search.best.Best(type: str, result: Optional[Union[Track, Artist, Album, Playlist, Video]], text: Optional[str] = None, client: Optional[Client] = None)#
Bases:
YandexMusicObject
Класс, представляющий лучший результат поиска.
- type#
Тип лучшего результата.
- Type
str
- result#
Лучший результат.
- Type
yandex_music.Track
|yandex_music.Artist
|yandex_music.Album
|yandex_music.Playlist
|yandex_music.Video
- text#
TODO.
- Type
str
, optional
- client#
Клиент Yandex Music.
- Type
yandex_music.Client
, optional
- classmethod de_json(data: dict, client: Client) Optional[Best] #
Десериализация объекта.
- Parameters
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns
Лучший результат.
- Return type
yandex_music.Best
- text: Optional[str] = None#
- type: str#