21 lines
748 B
C#
21 lines
748 B
C#
using YandexMusic.API.Models.Feed;
|
||
using YandexMusic.API.Models.Landing;
|
||
using YandexMusic.API.Requests.Feed;
|
||
using YandexMusic.API.Requests.Landing;
|
||
|
||
namespace YandexMusic.API;
|
||
|
||
/// <summary>API для работы с главной страницей (лендингом).</summary>
|
||
public class YLandingAPI : YCommonAPI
|
||
{
|
||
public YLandingAPI(YandexMusicApi api) : base(api) { }
|
||
|
||
public Task<YLanding?> GetAsync(params YLandingBlockType[] blocks)
|
||
=> new YGetLandingBuilder(Api).ExecuteAsync(blocks);
|
||
|
||
public Task<YFeed?> GetFeedAsync()
|
||
=> new YGetFeedBuilder(Api).ExecuteAsync(null!);
|
||
|
||
public Task<YChildrenLanding?> GetChildrenLandingAsync()
|
||
=> new YGetChildrenLandingBuilder(Api).ExecuteAsync(null!);
|
||
} |