Обнновлено до .net10

This commit is contained in:
FrigaT
2026-04-10 15:05:32 +03:00
parent 11d0b0d72f
commit 8444fc5f8e
386 changed files with 6361 additions and 7164 deletions

View File

@@ -7,27 +7,26 @@ using YandexMusic.API.Models.Label;
using YandexMusic.API.Requests.Common;
using YandexMusic.API.Requests.Common.Attributes;
namespace YandexMusic.API.Requests.Label
namespace YandexMusic.API.Requests.Label;
[YApiRequest(WebRequestMethods.Http.Get, "labels/{labelId}/artists")]
public class YGetLabelArtistsBuilder : YRequestBuilder<YResponse<YLabelArtists>, (YLabel label, int pageNumber)>
{
[YApiRequest(WebRequestMethods.Http.Get, "labels/{labelId}/artists")]
public class YGetLabelArtistsBuilder : YRequestBuilder<YResponse<YLabelArtists>, (YLabel label, int pageNumber)>
public YGetLabelArtistsBuilder(YandexMusicApi yandex, AuthStorage auth) : base(yandex, auth)
{
public YGetLabelArtistsBuilder(YandexMusicApi yandex, AuthStorage auth) : base(yandex, auth)
{
}
}
protected override NameValueCollection GetQueryParams((YLabel label, int pageNumber) tuple)
{
return new NameValueCollection {
{ "page", tuple.pageNumber.ToString() }
};
}
protected override NameValueCollection GetQueryParams((YLabel label, int pageNumber) tuple)
{
return new NameValueCollection {
{ "page", tuple.pageNumber.ToString() }
};
}
protected override Dictionary<string, string> GetSubstitutions((YLabel label, int pageNumber) tuple)
{
return new Dictionary<string, string> {
{ "labelId", tuple.label.Id }
};
}
protected override Dictionary<string, string> GetSubstitutions((YLabel label, int pageNumber) tuple)
{
return new Dictionary<string, string> {
{ "labelId", tuple.label.Id }
};
}
}