Skip to content

Commit c62d165

Browse files
rename deprecated methods
1 parent 0d84748 commit c62d165

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

‎src/main/java/com/wrapper/spotify/SpotifyApi.java‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,18 +1166,18 @@ public AddItemToUsersPlaybackQueueRequest.Builder addItemToUsersPlaybackQueue(St
11661166
}
11671167

11681168
/**
1169-
* Add tracks to a playlist.
1169+
* Add items to a playlist.
11701170
*
11711171
* @param user_id The owners username.
11721172
* @param playlist_id The playlists ID.
1173-
* @param uris URIs of the tracks to add. Maximum: 100 track URIs.
1173+
* @param uris URIs of the tracks or episodes to add. Maximum: 100 item URIs.
11741174
* @return An {@link AddItemsToPlaylistRequest.Builder}.
11751175
* @see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs &amp; IDs</a>
11761176
* @deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
11771177
* (https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
11781178
*/
11791179
@Deprecated
1180-
public AddItemsToPlaylistRequest.Builder addTracksToPlaylist(String user_id, String playlist_id, String[] uris) {
1180+
public AddItemsToPlaylistRequest.Builder addItemsToPlaylist(String user_id, String playlist_id, String[] uris) {
11811181
return new AddItemsToPlaylistRequest.Builder(accessToken)
11821182
.setDefaults(httpManager, scheme, host, port)
11831183
.user_id(user_id)
@@ -1201,18 +1201,18 @@ public AddItemsToPlaylistRequest.Builder addItemsToPlaylist(String playlist_id,
12011201
}
12021202

12031203
/**
1204-
* Add tracks to a playlist.
1204+
* Add items to a playlist.
12051205
*
12061206
* @param user_id The owners username.
12071207
* @param playlist_id The playlists ID.
1208-
* @param uris URIs of the tracks to add. Maximum: 100 track URIs.
1208+
* @param uris URIs of the tracks or episodes to add. Maximum: 100 item URIs.
12091209
* @return An {@link AddItemsToPlaylistRequest.Builder}.
12101210
* @see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs &amp; IDs</a>
12111211
* @deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
12121212
* (https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
12131213
*/
12141214
@Deprecated
1215-
public AddItemsToPlaylistRequest.Builder addTracksToPlaylist(String user_id, String playlist_id, JsonArray uris) {
1215+
public AddItemsToPlaylistRequest.Builder addItemsToPlaylist(String user_id, String playlist_id, JsonArray uris) {
12161216
return new AddItemsToPlaylistRequest.Builder(accessToken)
12171217
.setDefaults(httpManager, scheme, host, port)
12181218
.user_id(user_id)
@@ -1367,7 +1367,7 @@ public GetPlaylistCoverImageRequest.Builder getPlaylistCoverImage(String playlis
13671367
}
13681368

13691369
/**
1370-
* Get a playlists tracks.
1370+
* Get a playlists items.
13711371
*
13721372
* @param user_id The playlists owners username.
13731373
* @param playlist_id The playlists ID.
@@ -1377,7 +1377,7 @@ public GetPlaylistCoverImageRequest.Builder getPlaylistCoverImage(String playlis
13771377
* (https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
13781378
*/
13791379
@Deprecated
1380-
public GetPlaylistsItemsRequest.Builder getPlaylistsTracks(String user_id, String playlist_id) {
1380+
public GetPlaylistsItemsRequest.Builder getPlaylistsItems(String user_id, String playlist_id) {
13811381
return new GetPlaylistsItemsRequest.Builder(accessToken)
13821382
.setDefaults(httpManager, scheme, host, port)
13831383
.user_id(user_id)
@@ -1398,18 +1398,18 @@ public GetPlaylistsItemsRequest.Builder getPlaylistsItems (String playlist_id) {
13981398
}
13991399

14001400
/**
1401-
* Delete tracks from a playlist
1401+
* Delete items from a playlist
14021402
*
14031403
* @param user_id The owners username.
14041404
* @param playlist_id The playlists ID.
1405-
* @param tracks URIs of the tracks to remove. Maximum: 100 track URIs.
1405+
* @param tracks URIs of the items to remove. Maximum: 100 track or episode URIs.
14061406
* @return A {@link RemoveItemsFromPlaylistRequest.Builder}.
14071407
* @see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs &amp; IDs</a>
14081408
* @deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
14091409
* (https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
14101410
*/
14111411
@Deprecated
1412-
public RemoveItemsFromPlaylistRequest.Builder removeTracksFromPlaylist(
1412+
public RemoveItemsFromPlaylistRequest.Builder removeItemsFromPlaylist(
14131413
String user_id, String playlist_id, JsonArray tracks) {
14141414
return new RemoveItemsFromPlaylistRequest.Builder(accessToken)
14151415
.setDefaults(httpManager, scheme, host, port)
@@ -1435,24 +1435,24 @@ public RemoveItemsFromPlaylistRequest.Builder removeItemsFromPlaylist(
14351435
}
14361436

14371437
/**
1438-
* Reorder a track or a group of tracks in a playlist. <br><br>
1438+
* Reorder a item or a group of items in a playlist. <br><br>
14391439
* <p>
1440-
* When reordering tracks, the timestamp indicating when they were added and the user who added them will be kept
1440+
* When reordering items, the timestamp indicating when they were added and the user who added them will be kept
14411441
* untouched. In addition, the users following the playlists won’t be notified about changes in the playlists when the
1442-
* tracks are reordered.
1442+
* items are reordered.
14431443
*
14441444
* @param user_id The user's Spotify user ID.
14451445
* @param playlist_id The Spotify ID for the playlist.
1446-
* @param range_start The position of the first track to be reordered.
1447-
* @param insert_before The position where the tracks should be inserted. To reorder the tracks to the end of the
1448-
* playlist, simply set insert_before to the position after the last track.
1446+
* @param range_start The position of the first item to be reordered.
1447+
* @param insert_before The position where the items should be inserted. To reorder the items to the end of the
1448+
* playlist, simply set insert_before to the position after the last item.
14491449
* @return A {@link ReorderPlaylistsItemsRequest.Builder}.
14501450
* @see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs &amp; IDs</a>
14511451
* @deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
14521452
* (https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
14531453
*/
14541454
@Deprecated
1455-
public ReorderPlaylistsItemsRequest.Builder reorderPlaylistsTracks(String user_id, String playlist_id, int range_start, int insert_before) {
1455+
public ReorderPlaylistsItemsRequest.Builder reorderPlaylistsItems(String user_id, String playlist_id, int range_start, int insert_before) {
14561456
return new ReorderPlaylistsItemsRequest.Builder(accessToken)
14571457
.setDefaults(httpManager, scheme, host, port)
14581458
.user_id(user_id)
@@ -1484,18 +1484,18 @@ public ReorderPlaylistsItemsRequest.Builder reorderPlaylistsItems(String playlis
14841484
}
14851485

14861486
/**
1487-
* Replace tracks in a playlist.
1487+
* Replace items in a playlist.
14881488
*
14891489
* @param user_id The owners username.
14901490
* @param playlist_id The playlists ID.
1491-
* @param uris URIs of the tracks to add. Maximum: 100 track URIs.
1491+
* @param uris URIs of the items to add. Maximum: 100 track or episode URIs.
14921492
* @return A {@link ReplacePlaylistsItemsRequest.Builder}.
14931493
* @see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs &amp; IDs</a>
14941494
* @deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
14951495
* (https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
14961496
*/
14971497
@Deprecated
1498-
public ReplacePlaylistsItemsRequest.Builder replacePlaylistsTracks(String user_id, String playlist_id, String[] uris) {
1498+
public ReplacePlaylistsItemsRequest.Builder replacePlaylistsItems(String user_id, String playlist_id, String[] uris) {
14991499
return new ReplacePlaylistsItemsRequest.Builder(accessToken)
15001500
.setDefaults(httpManager, scheme, host, port)
15011501
.user_id(user_id)
@@ -1519,18 +1519,18 @@ public ReplacePlaylistsItemsRequest.Builder replacePlaylistsItems(String playlis
15191519
}
15201520

15211521
/**
1522-
* Replace tracks in a playlist.
1522+
* Replace items in a playlist.
15231523
*
15241524
* @param user_id The owners username.
15251525
* @param playlist_id The playlists ID.
1526-
* @param uris URIs of the tracks to add. Maximum: 100 track URIs.
1526+
* @param uris URIs of the items to add. Maximum: 100 track or episode URIs.
15271527
* @return A {@link ReplacePlaylistsItemsRequest.Builder}.
15281528
* @see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs &amp; IDs</a>
15291529
* @deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
15301530
* (https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
15311531
*/
15321532
@Deprecated
1533-
public ReplacePlaylistsItemsRequest.Builder replacePlaylistsTracks(String user_id, String playlist_id, JsonArray uris) {
1533+
public ReplacePlaylistsItemsRequest.Builder replacePlaylistsItems(String user_id, String playlist_id, JsonArray uris) {
15341534
return new ReplacePlaylistsItemsRequest.Builder(accessToken)
15351535
.setDefaults(httpManager, scheme, host, port)
15361536
.user_id(user_id)

0 commit comments

Comments
 (0)