mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 16:06:27 +00:00
b8a2190168
* feat: implements markets API * fix: use correct constructor name * feat: allow to pass a cancellation token * pass cancellation token * pass cancellation token only >NETSTANDARD2_1 Co-authored-by: Jonas Dellinger <jonas@dellinger.dev>
22 lines
631 B
C#
22 lines
631 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SpotifyAPI.Web
|
|
{
|
|
/// <summary>
|
|
/// Markets Endpoints
|
|
/// </summary>
|
|
public interface IMarketsClient
|
|
{
|
|
/// <summary>
|
|
/// Get the list of markets where Spotify is available.
|
|
/// </summary>
|
|
/// <param name="cancel">The cancellation-token to allow to cancel the request.</param>
|
|
/// <remarks>
|
|
/// https://developer.spotify.com/documentation/web-api/reference/#/operations/get-available-markets
|
|
/// </remarks>
|
|
/// <returns></returns>
|
|
Task<AvailableMarketsResponse> AvailableMarkets(CancellationToken cancel = default);
|
|
}
|
|
}
|