Skip to content

Commit ab386a6

Browse files
committed
remove rest actions (they will be auto-generated with KSP)
1 parent 5bff8a7 commit ab386a6

19 files changed

+11
-2180
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/client/ClientEpisodeApi.kt

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.adamratzman.spotify.endpoints.client
33

44
import com.adamratzman.spotify.GenericSpotifyApi
55
import com.adamratzman.spotify.SpotifyException.BadRequestException
6-
import com.adamratzman.spotify.SpotifyRestAction
76
import com.adamratzman.spotify.SpotifyScope
87
import com.adamratzman.spotify.endpoints.pub.EpisodeApi
98
import com.adamratzman.spotify.models.Episode
@@ -40,22 +39,6 @@ public class ClientEpisodeApi(api: GenericSpotifyApi) : EpisodeApi(api) {
4039
}
4140
}
4241

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-
5942
/**
6043
* Get Spotify catalog information for multiple episodes based on their Spotify IDs. The [Market] associated with
6144
* the user account will be used.
@@ -83,25 +66,4 @@ public class ClientEpisodeApi(api: GenericSpotifyApi) : EpisodeApi(api) {
8366
).toObject(EpisodeList.serializer(), api, json).episodes
8467
}.flatten()
8568
}
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-
}
10769
}

0 commit comments

Comments
 (0)