Files
YandexMusic/YandexMusic.API/API/YPinsAPIAsync.cs
2026-04-10 12:12:33 +03:00

33 lines
884 B
C#
Raw 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.Common;
using YandexMusic.API.Models.Common;
using YandexMusic.API.Models.Pins;
using YandexMusic.API.Requests.Pins;
namespace YandexMusic.API
{
/// <summary>
/// API для взаимодействия с прикреплёнными объектами
/// </summary>
public partial class YPinsAPI : YCommonAPI
{
public YPinsAPI(YandexMusicApi yandex) : base(yandex)
{
}
/// <summary>
/// Получение списка прикреплённых объектов
/// </summary>
/// <param name="storage">Хранилище</param>
/// <returns></returns>
public Task<YResponse<YPins>> GetAsync(AuthStorage storage)
{
return new YGetPinsBuilder(api, storage)
.Build(null)
.GetResponseAsync();
}
}
}