|
| 1 | +using System.Threading; |
| 2 | +using System.Threading.Tasks; |
| 3 | + |
| 4 | +namespace SpotifyAPI.Web |
| 5 | +{ |
| 6 | + /// <summary> |
| 7 | + /// Endpoints for retrieving information about one or more chapters from the Spotify catalog. |
| 8 | + /// </summary> |
| 9 | + public interface IChaptersClient |
| 10 | + { |
| 11 | + /// <summary> |
| 12 | + /// Get Spotify catalog information for a single audiobook chapter. Chapters are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets. |
| 13 | + /// </summary> |
| 14 | + /// <param name="chapterId">The Spotify ID for the chapter.</param> |
| 15 | + /// <param name="cancel">The cancellation-token to allow to cancel the request.</param> |
| 16 | + /// <remarks> |
| 17 | + /// https://developer.spotify.com/documentation/web-api/reference/get-a-chapter |
| 18 | + /// </remarks> |
| 19 | + /// <returns></returns> |
| 20 | + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")] |
| 21 | + Task<FullAudiobookChapter> Get(string chapterId, CancellationToken cancel = default); |
| 22 | + |
| 23 | + /// <summary> |
| 24 | + /// Get Spotify catalog information for a single audiobook chapter. Chapters are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets. |
| 25 | + /// </summary> |
| 26 | + /// <param name="chapterId">The Spotify ID for the chapter.</param> |
| 27 | + /// <param name="request">The request-model which contains required and optional parameters.</param> |
| 28 | + /// <param name="cancel">The cancellation-token to allow to cancel the request.</param> |
| 29 | + /// <remarks> |
| 30 | + /// https://developer.spotify.com/documentation/web-api/reference/get-a-chapter |
| 31 | + /// </remarks> |
| 32 | + /// <returns></returns> |
| 33 | + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")] |
| 34 | + Task<FullAudiobookChapter> Get(string chapterId, ChapterRequest request, CancellationToken cancel = default); |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// Get Spotify catalog information for several audiobook chapters identified by their Spotify IDs. Chapters are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets. |
| 38 | + /// </summary> |
| 39 | + /// <param name="request">The request-model which contains required and optional parameters.</param> |
| 40 | + /// <param name="cancel">The cancellation-token to allow to cancel the request.</param> |
| 41 | + /// <remarks> |
| 42 | + /// https://developer.spotify.com/documentation/web-api/reference/get-several-chapters |
| 43 | + /// </remarks> |
| 44 | + /// <returns></returns> |
| 45 | + Task<ChaptersResponse> GetSeveral(ChaptersRequest request, CancellationToken cancel = default); |
| 46 | + } |
| 47 | +} |
0 commit comments