Files
YandexMusic/YandexMusic.API/Requests/Radio/YGetStationBuilder.cs
FrigaT add7f08215
All checks were successful
Release / pack-and-publish (release) Successful in 32s
Добавлен вывод AuthStorage. Спрятаны внутренние api запросы
2026-04-19 17:41:30 +03:00

13 lines
587 B
C#

using System.Net;
using YandexMusic.API.Models.Radio;
namespace YandexMusic.API.Requests.Radio;
internal class YGetStationBuilder : YMusicRequestBuilder<List<YStation>?, (string type, string tag)>
{
public YGetStationBuilder(YandexMusicApi api) : base(api) { }
protected override string Method => WebRequestMethods.Http.Get;
protected override string PathTemplate => "rotor/station/{type}:{tag}/info";
protected override Dictionary<string, string> GetSubstitutions((string type, string tag) tuple)
=> new() { { "type", tuple.type }, { "tag", tuple.tag } };
}