using System.Collections.Specialized; using System.Net; using System.Net.Http.Headers; using YandexMusic.API.Models.Account; namespace YandexMusic.API.Requests.Account; internal class YGetShortAccountInfoBuilder : YPassportRequestBuilder { public YGetShortAccountInfoBuilder(YandexMusicApi api) : base(api) { } protected override string Method => WebRequestMethods.Http.Get; protected override string PathTemplate => "1/bundle/account/short_info/"; protected override NameValueCollection GetQueryParams(object _) => new() { { "avatar_size", "islands-300" } }; protected override void SetCustomHeaders(HttpRequestHeaders headers) { headers.Add("Ya-Consumer-Authorization", $"OAuth {Api.Storage.AccessToken.AccessToken}"); } }