@@ -11,7 +11,6 @@ import com.adamratzman.spotify.utils.ArtistURI
1111import com.adamratzman.spotify.utils.CursorBasedPagingObject
1212import com.adamratzman.spotify.utils.EndpointBuilder
1313import com.adamratzman.spotify.utils.PlaylistURI
14- import com.adamratzman.spotify.utils.SpotifyPublicUser
1514import com.adamratzman.spotify.utils.UserURI
1615import com.adamratzman.spotify.utils.encode
1716import com.adamratzman.spotify.utils.toArray
@@ -25,9 +24,9 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
2524 /* *
2625 * Check to see if the current user is following another Spotify users.
2726 *
28- * @param user Spotify ID to check.
27+ * @param user user id or uri to check.
2928 *
30- * @throws BadRequestException if [userId ] is a non-existing id
29+ * @throws BadRequestException if [user ] is a non-existing id
3130 */
3231 fun isFollowingUser (user : String ): SpotifyRestAction <Boolean > {
3332 return toAction(Supplier {
@@ -38,8 +37,8 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
3837 /* *
3938 * Check to see if the logged-in Spotify user is following the specified playlist.
4039 *
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
4342 *
4443 * @return booleans representing whether the user follows the playlist. User IDs **not** found will return false
4544 *
@@ -60,7 +59,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
6059 *
6160 * @param users List of the user Spotify IDs to check. Max 50
6261 *
63- * @throws BadRequestException if [userIds ] contains a non-existing id
62+ * @throws BadRequestException if [users ] contains a non-existing id
6463 */
6564 fun isFollowingUsers (vararg users : String ): SpotifyRestAction <List <Boolean >> {
6665 return toAction(Supplier {
@@ -74,9 +73,9 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
7473 /* *
7574 * Check to see if the current user is following a Spotify artist.
7675 *
77- * @param artistId Spotify ID to check.
76+ * @param artist artist id to check.
7877 *
79- * @throws BadRequestException if [artistId ] is a non-existing id
78+ * @throws BadRequestException if [artist ] is a non-existing id
8079 */
8180 fun isFollowingArtist (artist : String ): SpotifyRestAction <Boolean > {
8281 return toAction(Supplier {
@@ -87,9 +86,9 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
8786 /* *
8887 * Check to see if the current user is following one or more artists.
8988 *
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
9190 *
92- * @throws BadRequestException if [artistIds ] contains a non-existing id
91+ * @throws BadRequestException if [artists ] contains a non-existing id
9392 */
9493 fun isFollowingArtists (vararg artists : String ): SpotifyRestAction <List <Boolean >> {
9594 return toAction(Supplier {
@@ -120,9 +119,6 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
120119 })
121120 }
122121
123- fun getFollowedUsers (): SpotifyRestAction <List <SpotifyPublicUser >> =
124- throw NotImplementedError (" Though Spotify will implement this in the future, it is not currently supported." )
125-
126122 /* *
127123 * Add the current user as a follower of another user
128124 *
@@ -178,7 +174,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
178174 /* *
179175 * Add the current user as a follower of a playlist.
180176 *
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
182178 * public/private status, as long as you know its playlist ID.
183179 * @param followPublicly Defaults to true. If true the playlist will be included in user’s public playlists,
184180 * 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) {
200196 *
201197 * @param user The user to be unfollowed from
202198 *
203- * @throws BadRequestException if [userId ] is not found
199+ * @throws BadRequestException if [user ] is not found
204200 */
205201 fun unfollowUser (user : String ): SpotifyRestAction <Unit > {
206202 return toAction(Supplier {
@@ -228,7 +224,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
228224 /* *
229225 * Remove the current user as a follower of an artist
230226 *
231- * @param artistId The artist to be unfollowed from
227+ * @param artist The artist to be unfollowed from
232228 *
233229 * @throws BadRequestException if an invalid id is provided
234230 */
@@ -241,7 +237,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
241237 /* *
242238 * Remove the current user as a follower of artists
243239 *
244- * @param artistIds The artists to be unfollowed from
240+ * @param artists The artists to be unfollowed from
245241 *
246242 * @throws BadRequestException if an invalid id is provided
247243 */
@@ -258,7 +254,7 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
258254 /* *
259255 * Remove the current user as a follower of a playlist.
260256 *
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.
262258 *
263259 * @throws BadRequestException if the playlist is not found
264260 */
0 commit comments