using System.Collections.Specialized; using System.Net; using YandexMusic.API.Models.Common; using YandexMusic.API.Models.Label; namespace YandexMusic.API.Requests.Label; internal class YGetLabelArtistsBuilder : YMusicRequestBuilder { public YGetLabelArtistsBuilder(YandexMusicApi api) : base(api) { } protected override string Method => WebRequestMethods.Http.Get; protected override string PathTemplate => "labels/{labelId}/artists"; protected override Dictionary GetSubstitutions((YLabel label, int pageNumber) tuple) => new() { { "labelId", tuple.label.Id } }; protected override NameValueCollection GetQueryParams((YLabel label, int pageNumber) tuple) => new() { { "page", tuple.pageNumber.ToString() } }; }