using System.Collections.Specialized; using System.Net; using YandexMusic.API.Models.Artist; namespace YandexMusic.API.Requests.Artist; public class YGetArtistTrackBuilder : YMusicRequestBuilder { public YGetArtistTrackBuilder(YandexMusicApi api) : base(api) { } protected override string Method => WebRequestMethods.Http.Get; protected override string PathTemplate => "artists/{artistId}/tracks"; protected override Dictionary GetSubstitutions((string id, int page, int pageSize) tuple) => new() { { "artistId", tuple.id } }; protected override NameValueCollection GetQueryParams((string id, int page, int pageSize) tuple) => new() { { "page", tuple.page.ToString() }, { "pageSize", tuple.pageSize.ToString() } }; }