Files
YandexMusic/YandexMusic.API/Requests/Track/YGetTrackSimilarBuilder.cs
FrigaT 36e28ce3fe
All checks were successful
Release / pack-and-publish (release) Successful in 36s
Полностью переписанное api
2026-04-19 17:00:05 +03:00

13 lines
529 B
C#

using System.Net;
using YandexMusic.API.Models.Track;
namespace YandexMusic.API.Requests.Track;
public class YGetTrackSimilarBuilder : YMusicRequestBuilder<YTrackSimilar?, string>
{
public YGetTrackSimilarBuilder(YandexMusicApi api) : base(api) { }
protected override string Method => WebRequestMethods.Http.Get;
protected override string PathTemplate => "tracks/{trackId}/similar";
protected override Dictionary<string, string> GetSubstitutions(string trackId)
=> new() { { "trackId", trackId } };
}