2022-11-18 11:30:09 +00:00
|
|
|
using System.Threading;
|
2022-08-11 07:54:09 +01:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
using SpotifyAPI.Web.Http;
|
|
|
|
using URLs = SpotifyAPI.Web.SpotifyUrls;
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
|
|
|
public class MarketsClient : APIClient, IMarketsClient
|
|
|
|
{
|
|
|
|
public MarketsClient(IAPIConnector apiConnector) : base(apiConnector) { }
|
|
|
|
|
2022-11-18 11:30:09 +00:00
|
|
|
public Task<AvailableMarketsResponse> AvailableMarkets(CancellationToken cancel = default)
|
2022-08-11 07:54:09 +01:00
|
|
|
{
|
2022-11-18 11:30:09 +00:00
|
|
|
return API.Get<AvailableMarketsResponse>(URLs.Markets(), cancel);
|
2022-08-11 07:54:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|