mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 07:56:26 +00:00
19 lines
479 B
C#
19 lines
479 B
C#
using System.Threading.Tasks;
|
|
using SpotifyAPI.Web.Http;
|
|
using URLs = SpotifyAPI.Web.SpotifyUrls;
|
|
|
|
namespace SpotifyAPI.Web
|
|
{
|
|
public class SearchClient : APIClient, ISearchClient
|
|
{
|
|
public SearchClient(IAPIConnector apiConnector) : base(apiConnector) { }
|
|
|
|
public Task<SearchResponse> Item(SearchRequest request)
|
|
{
|
|
Ensure.ArgumentNotNull(request, nameof(request));
|
|
|
|
return API.Get<SearchResponse>(URLs.Search(), request.BuildQueryParams());
|
|
}
|
|
}
|
|
}
|