17 lines
815 B
C#
17 lines
815 B
C#
using System.Collections.Specialized;
|
|
using System.Net;
|
|
using YandexMusic.API.Models.Common;
|
|
using YandexMusic.API.Models.Label;
|
|
|
|
namespace YandexMusic.API.Requests.Label;
|
|
|
|
public class YGetLabelArtistsBuilder : YMusicRequestBuilder<YLabelArtists?, (YLabel label, int pageNumber)>
|
|
{
|
|
public YGetLabelArtistsBuilder(YandexMusicApi api) : base(api) { }
|
|
protected override string Method => WebRequestMethods.Http.Get;
|
|
protected override string PathTemplate => "labels/{labelId}/artists";
|
|
protected override Dictionary<string, string> 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() } };
|
|
} |