Spotify.NET/SpotifyAPI.Web/Clients/Interfaces/IAlbumsClient.cs
2020-05-28 16:30:17 +02:00

64 lines
2.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Threading.Tasks;
namespace SpotifyAPI.Web
{
public interface IAlbumsClient
{
/// <summary>
/// Get Spotify catalog information for multiple albums identified by 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-albums
/// </remarks>
/// <returns></returns>
Task<AlbumsResponse> GetSeveral(AlbumsRequest request);
/// <summary>
/// Get Spotify catalog information for a single album.
/// </summary>
/// <param name="albumId">The Spotify ID of the album.</param>
/// <remarks>
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-an-album
/// </remarks>
/// <returns></returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
Task<FullAlbum> Get(string albumId);
/// <summary>
/// Get Spotify catalog information for a single album.
/// </summary>
/// <param name="albumId">The Spotify ID of the album.</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-album
/// </remarks>
/// <returns></returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
Task<FullAlbum> Get(string albumId, AlbumRequest request);
/// <summary>
/// Get Spotify catalog information about an albums tracks.
/// Optional parameters can be used to limit the number of tracks returned.
/// </summary>
/// <param name="albumId">The Spotify ID of the album.</param>
/// <remarks>
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-an-albums-tracks
/// </remarks>
/// <returns></returns>
Task<Paging<SimpleTrack>> GetTracks(string albumId);
/// <summary>
/// Get Spotify catalog information about an albums tracks.
/// Optional parameters can be used to limit the number of tracks returned.
/// </summary>
/// <param name="albumId">The Spotify ID of the album.</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-albums-tracks
/// </remarks>
/// <returns></returns>
Task<Paging<SimpleTrack>> GetTracks(string albumId, AlbumTracksRequest request);
}
}