Files
YandexMusic/YandexMusic.API/API/YLabelAPI.cs
FrigaT 36e28ce3fe
All checks were successful
Release / pack-and-publish (release) Successful in 36s
Полностью переписанное api
2026-04-19 17:00:05 +03:00

19 lines
811 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using YandexMusic.API.Models.Common;
using YandexMusic.API.Models.Label;
using YandexMusic.API.Requests.Label;
namespace YandexMusic.API;
/// <summary>API для работы с лейблами.</summary>
public class YLabelAPI : YCommonAPI
{
public YLabelAPI(YandexMusicApi api) : base(api) { }
/// <summary>Получает альбомы лейбла с пагинацией.</summary>
public Task<YLabelAlbums?> GetAlbumsByLabelAsync(YLabel label, int page = 0)
=> new YGetLabelAlbumsBuilder(Api).ExecuteAsync((label, page));
/// <summary>Получает артистов лейбла с пагинацией.</summary>
public Task<YLabelArtists?> GetArtistsByLabelAsync(YLabel label, int page = 0)
=> new YGetLabelArtistsBuilder(Api).ExecuteAsync((label, page));
}