2020-05-11 17:43:52 +01:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
2020-05-31 15:57:58 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Endpoints for retrieving information about one or more episodes from the Spotify catalog.
|
|
|
|
/// </summary>
|
2020-05-11 17:43:52 +01:00
|
|
|
public interface IEpisodesClient
|
|
|
|
{
|
2020-05-28 15:30:17 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Get Spotify catalog information for a single episode identified by its unique Spotify ID.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="episodeId">The Spotify ID for the episode.</param>
|
|
|
|
/// <remarks>
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-an-episode
|
|
|
|
/// </remarks>
|
|
|
|
/// <returns></returns>
|
2020-05-11 17:43:52 +01:00
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
|
|
|
Task<FullEpisode> Get(string episodeId);
|
|
|
|
|
2020-05-28 15:30:17 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Get Spotify catalog information for a single episode identified by its unique Spotify ID.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="episodeId">The Spotify ID for the episode.</param>
|
|
|
|
/// <param name="request">The request-model which contains required and optional parameters.</param>
|
|
|
|
/// <remarks>
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-an-episode
|
|
|
|
/// </remarks>
|
|
|
|
/// <returns></returns>
|
2020-05-11 17:43:52 +01:00
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
|
|
|
Task<FullEpisode> Get(string episodeId, EpisodeRequest request);
|
|
|
|
|
2020-05-28 15:30:17 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Get Spotify catalog information for several episodes based on their Spotify IDs.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request">The request-model which contains required and optional parameters.</param>
|
|
|
|
/// <remarks>
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-multiple-episodes
|
|
|
|
/// </remarks>
|
|
|
|
/// <returns></returns>
|
2020-05-11 17:43:52 +01:00
|
|
|
Task<EpisodesResponse> GetSeveral(EpisodesRequest request);
|
|
|
|
}
|
|
|
|
}
|