@@ -10,13 +10,15 @@ public class FollowClient : APIClient, IFollowClient
1010 {
1111 public FollowClient ( IAPIConnector apiConnector ) : base ( apiConnector ) { }
1212
13+ [ System . Obsolete ( "This endpoint (GET /me/following/contains) has been removed. Use GET /me/library/contains instead." ) ]
1314 public Task < List < bool > > CheckCurrentUser ( FollowCheckCurrentUserRequest request , CancellationToken cancel = default )
1415 {
1516 Ensure . ArgumentNotNull ( request , nameof ( request ) ) ;
1617
1718 return API . Get < List < bool > > ( URLs . CurrentUserFollowerContains ( ) , request . BuildQueryParams ( ) , cancel ) ;
1819 }
1920
21+ [ System . Obsolete ( "This endpoint (GET /playlists/{id}/followers/contains) has been removed. Use GET /me/library/contains instead." ) ]
2022 public Task < List < bool > > CheckPlaylist ( string playlistId , FollowCheckPlaylistRequest request , CancellationToken cancel = default )
2123 {
2224 Ensure . ArgumentNotNullOrEmptyString ( playlistId , nameof ( playlistId ) ) ;
@@ -25,6 +27,7 @@ public Task<List<bool>> CheckPlaylist(string playlistId, FollowCheckPlaylistRequ
2527 return API . Get < List < bool > > ( URLs . PlaylistFollowersContains ( playlistId ) , request . BuildQueryParams ( ) , cancel ) ;
2628 }
2729
30+ [ System . Obsolete ( "This endpoint (PUT /me/following) has been removed. Use PUT /me/library instead." ) ]
2831 public async Task < bool > Follow ( FollowRequest request , CancellationToken cancel = default )
2932 {
3033 Ensure . ArgumentNotNull ( request , nameof ( request ) ) ;
@@ -35,6 +38,7 @@ public async Task<bool> Follow(FollowRequest request, CancellationToken cancel =
3538 return HTTPUtil . StatusCodeIsSuccess ( statusCode ) ;
3639 }
3740
41+ [ System . Obsolete ( "This endpoint (PUT /playlists/{id}/followers) has been removed. Use PUT /me/library instead." ) ]
3842 public async Task < bool > FollowPlaylist ( string playlistId , CancellationToken cancel = default )
3943 {
4044 Ensure . ArgumentNotNullOrEmptyString ( playlistId , nameof ( playlistId ) ) ;
@@ -45,6 +49,7 @@ public async Task<bool> FollowPlaylist(string playlistId, CancellationToken canc
4549 return HTTPUtil . StatusCodeIsSuccess ( statusCode ) ;
4650 }
4751
52+ [ System . Obsolete ( "This endpoint (PUT /playlists/{id}/followers) has been removed. Use PUT /me/library instead." ) ]
4853 public async Task < bool > FollowPlaylist ( string playlistId , FollowPlaylistRequest request , CancellationToken cancel = default )
4954 {
5055 Ensure . ArgumentNotNullOrEmptyString ( playlistId , nameof ( playlistId ) ) ;
@@ -70,6 +75,7 @@ public Task<FollowedArtistsResponse> OfCurrentUser(FollowOfCurrentUserRequest re
7075 return API . Get < FollowedArtistsResponse > ( URLs . CurrentUserFollower ( ) , request . BuildQueryParams ( ) , cancel ) ;
7176 }
7277
78+ [ System . Obsolete ( "This endpoint (DELETE /me/following) has been removed. Use DELETE /me/library instead." ) ]
7379 public async Task < bool > Unfollow ( UnfollowRequest request , CancellationToken cancel = default )
7480 {
7581 Ensure . ArgumentNotNull ( request , nameof ( request ) ) ;
@@ -80,6 +86,7 @@ public async Task<bool> Unfollow(UnfollowRequest request, CancellationToken canc
8086 return HTTPUtil . StatusCodeIsSuccess ( statusCode ) ;
8187 }
8288
89+ [ System . Obsolete ( "This endpoint (DELETE /playlists/{id}/followers) has been removed. Use DELETE /me/library instead." ) ]
8390 public async Task < bool > UnfollowPlaylist ( string playlistId , CancellationToken cancel = default )
8491 {
8592 Ensure . ArgumentNotNullOrEmptyString ( playlistId , nameof ( playlistId ) ) ;
0 commit comments