2022-11-18 11:30:09 +00:00
|
|
|
|
using System.Threading;
|
2020-05-02 21:48:21 +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 shows from the Spotify catalog.
|
|
|
|
|
/// </summary>
|
2020-05-02 21:48:21 +01:00
|
|
|
|
public interface IShowsClient
|
|
|
|
|
{
|
2020-05-31 14:56:49 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get Spotify catalog information for a single show identified by its unique Spotify ID.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="showId">The Spotify ID for the show.</param>
|
2022-11-18 11:30:09 +00:00
|
|
|
|
/// <param name="cancel">The cancellation-token to allow to cancel the request.</param>
|
2020-05-31 14:56:49 +01:00
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-a-show
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2020-05-05 14:30:00 +01:00
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
2022-11-18 11:30:09 +00:00
|
|
|
|
Task<FullShow> Get(string showId, CancellationToken cancel = default);
|
2020-05-31 14:56:49 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get Spotify catalog information for a single show identified by its unique Spotify ID.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="showId">The Spotify ID for the show.</param>
|
|
|
|
|
/// <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-31 14:56:49 +01:00
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-a-show
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2020-05-05 14:30:00 +01:00
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
2022-11-18 11:30:09 +00:00
|
|
|
|
Task<FullShow> Get(string showId, ShowRequest request, CancellationToken cancel = default);
|
2020-05-02 21:48:21 +01:00
|
|
|
|
|
2020-05-31 14:56:49 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get Spotify catalog information for several shows based on their Spotify IDs.
|
|
|
|
|
/// </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-31 14:56:49 +01:00
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-multiple-shows
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2022-11-18 11:30:09 +00:00
|
|
|
|
Task<ShowsResponse> GetSeveral(ShowsRequest request, CancellationToken cancel = default);
|
2020-05-02 21:48:21 +01:00
|
|
|
|
|
2020-05-31 14:56:49 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get Spotify catalog information about an show’s episodes.
|
|
|
|
|
/// Optional parameters can be used to limit the number of episodes returned.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="showId">The Spotify ID for the show.</param>
|
2022-11-18 11:30:09 +00:00
|
|
|
|
/// <param name="cancel">The cancellation-token to allow to cancel the request.</param>
|
2020-05-31 14:56:49 +01:00
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-a-shows-episodes
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2022-11-18 11:30:09 +00:00
|
|
|
|
Task<Paging<SimpleEpisode>> GetEpisodes(string showId, CancellationToken cancel = default);
|
2020-05-31 14:56:49 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get Spotify catalog information about an show’s episodes.
|
|
|
|
|
/// Optional parameters can be used to limit the number of episodes returned.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="showId">The Spotify ID for the show.</param>
|
|
|
|
|
/// <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-31 14:56:49 +01:00
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-a-shows-episodes
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2022-11-18 11:30:09 +00:00
|
|
|
|
Task<Paging<SimpleEpisode>> GetEpisodes(string showId, ShowEpisodesRequest request, CancellationToken cancel = default);
|
2020-05-02 21:48:21 +01:00
|
|
|
|
}
|
|
|
|
|
}
|