25 lines
773 B
C#
25 lines
773 B
C#
using System.Net;
|
|
|
|
using YandexMusic.API.Common;
|
|
using YandexMusic.API.Models.Common;
|
|
using YandexMusic.API.Models.Track;
|
|
using YandexMusic.API.Requests.Common;
|
|
using YandexMusic.API.Requests.Common.Attributes;
|
|
|
|
namespace YandexMusic.API.Requests.Track
|
|
{
|
|
[YApiRequest(WebRequestMethods.Http.Get, "tracks/{trackId}/similar")]
|
|
public class YGetTrackSimilarBuilder : YRequestBuilder<YResponse<YTrackSimilar>, string>
|
|
{
|
|
public YGetTrackSimilarBuilder(YandexMusicApi yandex, AuthStorage auth) : base(yandex, auth)
|
|
{
|
|
}
|
|
|
|
protected override Dictionary<string, string> GetSubstitutions(string trackId)
|
|
{
|
|
return new Dictionary<string, string> {
|
|
{ "trackId", trackId }
|
|
};
|
|
}
|
|
}
|
|
} |