@@ -11,7 +11,6 @@ import com.adamratzman.spotify.utils.ArtistURI
11
11
import com.adamratzman.spotify.utils.CursorBasedPagingObject
12
12
import com.adamratzman.spotify.utils.EndpointBuilder
13
13
import com.adamratzman.spotify.utils.PlaylistURI
14
- import com.adamratzman.spotify.utils.SpotifyPublicUser
15
14
import com.adamratzman.spotify.utils.UserURI
16
15
import com.adamratzman.spotify.utils.encode
17
16
import com.adamratzman.spotify.utils.toArray
@@ -25,9 +24,9 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
25
24
/* *
26
25
* Check to see if the current user is following another Spotify users.
27
26
*
28
- * @param user Spotify ID to check.
27
+ * @param user user id or uri to check.
29
28
*
30
- * @throws BadRequestException if [userId ] is a non-existing id
29
+ * @throws BadRequestException if [user ] is a non-existing id
31
30
*/
32
31
fun isFollowingUser (user : String ): SpotifyRestAction <Boolean > {
33
32
return toAction(Supplier {
@@ -38,8 +37,8 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
38
37
/* *
39
38
* Check to see if the logged-in Spotify user is following the specified playlist.
40
39
*
41
- * @param playlistOwner Spotify ID of the creator of the playlist
42
- * @param playlistId Spotify playlist ID
40
+ * @param playlistOwner id or uri of the creator of the playlist
41
+ * @param playlistId playlist id or uri
43
42
*
44
43
* @return booleans representing whether the user follows the playlist. User IDs **not** found will return false
45
44
*
@@ -60,7 +59,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
60
59
*
61
60
* @param users List of the user Spotify IDs to check. Max 50
62
61
*
63
- * @throws BadRequestException if [userIds ] contains a non-existing id
62
+ * @throws BadRequestException if [users ] contains a non-existing id
64
63
*/
65
64
fun isFollowingUsers (vararg users : String ): SpotifyRestAction <List <Boolean >> {
66
65
return toAction(Supplier {
@@ -74,9 +73,9 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
74
73
/* *
75
74
* Check to see if the current user is following a Spotify artist.
76
75
*
77
- * @param artistId Spotify ID to check.
76
+ * @param artist artist id to check.
78
77
*
79
- * @throws BadRequestException if [artistId ] is a non-existing id
78
+ * @throws BadRequestException if [artist ] is a non-existing id
80
79
*/
81
80
fun isFollowingArtist (artist : String ): SpotifyRestAction <Boolean > {
82
81
return toAction(Supplier {
@@ -87,9 +86,9 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
87
86
/* *
88
87
* Check to see if the current user is following one or more artists.
89
88
*
90
- * @param artistIds List of the artist Spotify IDs to check. Max 50
89
+ * @param artists List of the artist ids or uris to check. Max 50
91
90
*
92
- * @throws BadRequestException if [artistIds ] contains a non-existing id
91
+ * @throws BadRequestException if [artists ] contains a non-existing id
93
92
*/
94
93
fun isFollowingArtists (vararg artists : String ): SpotifyRestAction <List <Boolean >> {
95
94
return toAction(Supplier {
@@ -120,9 +119,6 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
120
119
})
121
120
}
122
121
123
- fun getFollowedUsers (): SpotifyRestAction <List <SpotifyPublicUser >> =
124
- throw NotImplementedError (" Though Spotify will implement this in the future, it is not currently supported." )
125
-
126
122
/* *
127
123
* Add the current user as a follower of another user
128
124
*
@@ -178,7 +174,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
178
174
/* *
179
175
* Add the current user as a follower of a playlist.
180
176
*
181
- * @param playlist The Spotify ID of the playlist. Any playlist can be followed, regardless of its
177
+ * @param playlist the spotify id or uri of the playlist. Any playlist can be followed, regardless of its
182
178
* public/private status, as long as you know its playlist ID.
183
179
* @param followPublicly Defaults to true. If true the playlist will be included in user’s public playlists,
184
180
* if false it will remain private. To be able to follow playlists privately, the user must have granted the playlist-modify-private scope.
@@ -200,7 +196,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
200
196
*
201
197
* @param user The user to be unfollowed from
202
198
*
203
- * @throws BadRequestException if [userId ] is not found
199
+ * @throws BadRequestException if [user ] is not found
204
200
*/
205
201
fun unfollowUser (user : String ): SpotifyRestAction <Unit > {
206
202
return toAction(Supplier {
@@ -228,7 +224,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
228
224
/* *
229
225
* Remove the current user as a follower of an artist
230
226
*
231
- * @param artistId The artist to be unfollowed from
227
+ * @param artist The artist to be unfollowed from
232
228
*
233
229
* @throws BadRequestException if an invalid id is provided
234
230
*/
@@ -241,7 +237,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
241
237
/* *
242
238
* Remove the current user as a follower of artists
243
239
*
244
- * @param artistIds The artists to be unfollowed from
240
+ * @param artists The artists to be unfollowed from
245
241
*
246
242
* @throws BadRequestException if an invalid id is provided
247
243
*/
@@ -258,7 +254,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
258
254
/* *
259
255
* Remove the current user as a follower of a playlist.
260
256
*
261
- * @param playlistId The Spotify ID of the playlist that is to be no longer followed.
257
+ * @param playlist the spotify id or uri of the playlist that is to be no longer followed.
262
258
*
263
259
* @throws BadRequestException if the playlist is not found
264
260
*/
0 commit comments