@@ -3,7 +3,6 @@ package com.adamratzman.spotify.endpoints.client
3
3
4
4
import com.adamratzman.spotify.GenericSpotifyApi
5
5
import com.adamratzman.spotify.SpotifyException.BadRequestException
6
- import com.adamratzman.spotify.SpotifyRestAction
7
6
import com.adamratzman.spotify.SpotifyScope
8
7
import com.adamratzman.spotify.endpoints.pub.EpisodeApi
9
8
import com.adamratzman.spotify.models.Episode
@@ -40,22 +39,6 @@ public class ClientEpisodeApi(api: GenericSpotifyApi) : EpisodeApi(api) {
40
39
}
41
40
}
42
41
43
- /* *
44
- * Get Spotify catalog information for a single episode identified by its unique Spotify ID. The [Market] associated with
45
- * the user account will be used.
46
- *
47
- * **Reading the user’s resume points on episode objects requires the [SpotifyScope.USER_READ_PLAYBACK_POSITION] scope**
48
- *
49
- * **[Api Reference](https://developer.spotify.com/documentation/web-api/reference/episodes/get-an-episode/)**
50
- *
51
- * @param id The Spotify ID for the episode.
52
- *
53
- * @return possibly-null [Episode].
54
- */
55
- public fun getEpisodeRestAction (id : String ): SpotifyRestAction <Episode ?> {
56
- return SpotifyRestAction { getEpisode(id) }
57
- }
58
-
59
42
/* *
60
43
* Get Spotify catalog information for multiple episodes based on their Spotify IDs. The [Market] associated with
61
44
* the user account will be used.
@@ -83,25 +66,4 @@ public class ClientEpisodeApi(api: GenericSpotifyApi) : EpisodeApi(api) {
83
66
).toObject(EpisodeList .serializer(), api, json).episodes
84
67
}.flatten()
85
68
}
86
-
87
- /* *
88
- * Get Spotify catalog information for multiple episodes based on their Spotify IDs. The [Market] associated with
89
- * the user account will be used.
90
- *
91
- * **Invalid episode ids will result in a [BadRequestException]
92
- *
93
- * **Reading the user’s resume points on episode objects requires the [SpotifyScope.USER_READ_PLAYBACK_POSITION] scope**
94
- *
95
- * **[Api Reference](https://developer.spotify.com/documentation/web-api/reference/episodes/get-several-episodes/)**
96
- *
97
- * @param ids The id or uri for the episodes. Maximum **50**.
98
- *
99
- * @return List of possibly-null [Episode] objects.
100
- * @throws BadRequestException If any invalid show id is provided
101
- */
102
- public fun getEpisodesRestAction (vararg ids : String ): SpotifyRestAction <List <Episode ?>> {
103
- return SpotifyRestAction {
104
- getEpisodes(* ids)
105
- }
106
- }
107
69
}
0 commit comments