13 lines
592 B
C#
13 lines
592 B
C#
using System.Net;
|
|
using YandexMusic.API.Models.Playlist;
|
|
|
|
namespace YandexMusic.API.Requests.Playlist;
|
|
|
|
internal class YGetPlaylistBuilder : YMusicRequestBuilder<YPlaylist?, (string user, string kind)>
|
|
{
|
|
public YGetPlaylistBuilder(YandexMusicApi api) : base(api) { }
|
|
protected override string Method => WebRequestMethods.Http.Get;
|
|
protected override string PathTemplate => "users/{user}/playlists/{kind}";
|
|
protected override Dictionary<string, string> GetSubstitutions((string user, string kind) tuple)
|
|
=> new() { { "user", tuple.user }, { "kind", tuple.kind } };
|
|
} |