2022-11-18 11:30:09 +00:00
|
|
|
using System.Threading;
|
2020-05-03 21:34:03 +01:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
2020-05-31 15:57:58 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Search Endpoints
|
|
|
|
/// </summary>
|
2020-05-03 21:34:03 +01:00
|
|
|
public interface ISearchClient
|
|
|
|
{
|
2020-05-30 23:11:05 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Get Spotify Catalog information about albums, artists, playlists,
|
|
|
|
/// tracks, shows or episodes that match a keyword string.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request">The request-model which contains required and optional parameters.</param>
|
2022-11-18 11:30:09 +00:00
|
|
|
/// <param name="cancel">The cancellation-token to allow to cancel the request.</param>
|
2020-05-30 23:11:05 +01:00
|
|
|
/// <remarks>
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-search
|
|
|
|
/// </remarks>
|
|
|
|
/// <returns></returns>
|
2022-11-18 11:30:09 +00:00
|
|
|
Task<SearchResponse> Item(SearchRequest request, CancellationToken cancel = default);
|
2020-05-03 21:34:03 +01:00
|
|
|
}
|
|
|
|
}
|