@@ -822,7 +822,6 @@ public Task<ListResponse<bool>> IsFollowingAsync(FollowType followType, string i
822
822
/// <summary>
823
823
/// Add the current user as a follower of a playlist.
824
824
/// </summary>
825
- /// <param name="ownerId">The Spotify user ID of the person who owns the playlist.</param>
826
825
/// <param name="playlistId">
827
826
/// The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private
828
827
/// status, as long as you know its playlist ID.
@@ -839,13 +838,12 @@ public ErrorResponse FollowPlaylist(string ownerId, string playlistId, bool show
839
838
{
840
839
{ "public" , showPublic }
841
840
} ;
842
- return UploadData < ErrorResponse > ( _builder . FollowPlaylist ( ownerId , playlistId , showPublic ) , body . ToString ( Formatting . None ) , "PUT" ) ;
841
+ return UploadData < ErrorResponse > ( _builder . FollowPlaylist ( playlistId ) , body . ToString ( Formatting . None ) , "PUT" ) ;
843
842
}
844
843
845
844
/// <summary>
846
845
/// Add the current user as a follower of a playlist asynchronously.
847
846
/// </summary>
848
- /// <param name="ownerId">The Spotify user ID of the person who owns the playlist.</param>
849
847
/// <param name="playlistId">
850
848
/// The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private
851
849
/// status, as long as you know its playlist ID.
@@ -856,25 +854,24 @@ public ErrorResponse FollowPlaylist(string ownerId, string playlistId, bool show
856
854
/// </param>
857
855
/// <returns></returns>
858
856
/// <remarks>AUTH NEEDED</remarks>
859
- public Task < ErrorResponse > FollowPlaylistAsync ( string ownerId , string playlistId , bool showPublic = true )
857
+ public Task < ErrorResponse > FollowPlaylistAsync ( string playlistId , bool showPublic = true )
860
858
{
861
859
JObject body = new JObject
862
860
{
863
861
{ "public" , showPublic }
864
862
} ;
865
- return UploadDataAsync < ErrorResponse > ( _builder . FollowPlaylist ( ownerId , playlistId , showPublic ) , body . ToString ( Formatting . None ) , "PUT" ) ;
863
+ return UploadDataAsync < ErrorResponse > ( _builder . FollowPlaylist ( playlistId ) , body . ToString ( Formatting . None ) , "PUT" ) ;
866
864
}
867
865
868
866
/// <summary>
869
867
/// Remove the current user as a follower of a playlist.
870
868
/// </summary>
871
- /// <param name="ownerId">The Spotify user ID of the person who owns the playlist.</param>
872
869
/// <param name="playlistId">The Spotify ID of the playlist that is to be no longer followed.</param>
873
870
/// <returns></returns>
874
871
/// <remarks>AUTH NEEDED</remarks>
875
- public ErrorResponse UnfollowPlaylist ( string ownerId , string playlistId )
872
+ public ErrorResponse UnfollowPlaylist ( string playlistId )
876
873
{
877
- return UploadData < ErrorResponse > ( _builder . UnfollowPlaylist ( ownerId , playlistId ) , "" , "DELETE" ) ;
874
+ return UploadData < ErrorResponse > ( _builder . UnfollowPlaylist ( playlistId ) , "" , "DELETE" ) ;
878
875
}
879
876
880
877
/// <summary>
@@ -884,69 +881,65 @@ public ErrorResponse UnfollowPlaylist(string ownerId, string playlistId)
884
881
/// <param name="playlistId">The Spotify ID of the playlist that is to be no longer followed.</param>
885
882
/// <returns></returns>
886
883
/// <remarks>AUTH NEEDED</remarks>
887
- public Task < ErrorResponse > UnfollowPlaylistAsync ( string ownerId , string playlistId )
884
+ public Task < ErrorResponse > UnfollowPlaylistAsync ( string playlistId )
888
885
{
889
- return UploadDataAsync < ErrorResponse > ( _builder . UnfollowPlaylist ( ownerId , playlistId ) , "" , "DELETE" ) ;
886
+ return UploadDataAsync < ErrorResponse > ( _builder . UnfollowPlaylist ( playlistId ) , "" , "DELETE" ) ;
890
887
}
891
888
892
889
/// <summary>
893
890
/// Check to see if one or more Spotify users are following a specified playlist.
894
891
/// </summary>
895
- /// <param name="ownerId">The Spotify user ID of the person who owns the playlist.</param>
896
892
/// <param name="playlistId">The Spotify ID of the playlist.</param>
897
893
/// <param name="ids">A list of Spotify User IDs</param>
898
894
/// <returns></returns>
899
895
/// <remarks>AUTH NEEDED</remarks>
900
- public ListResponse < bool > IsFollowingPlaylist ( string ownerId , string playlistId , List < string > ids )
896
+ public ListResponse < bool > IsFollowingPlaylist ( string playlistId , List < string > ids )
901
897
{
902
898
if ( ! UseAuth )
903
899
throw new InvalidOperationException ( "Auth is required for IsFollowingPlaylist" ) ;
904
900
905
- string url = _builder . IsFollowingPlaylist ( ownerId , playlistId , ids ) ;
901
+ string url = _builder . IsFollowingPlaylist ( playlistId , ids ) ;
906
902
return DownloadList < bool > ( url ) ;
907
903
}
908
904
909
905
/// <summary>
910
906
/// Check to see if one or more Spotify users are following a specified playlist asynchronously.
911
907
/// </summary>
912
- /// <param name="ownerId">The Spotify user ID of the person who owns the playlist.</param>
913
908
/// <param name="playlistId">The Spotify ID of the playlist.</param>
914
909
/// <param name="ids">A list of Spotify User IDs</param>
915
910
/// <returns></returns>
916
911
/// <remarks>AUTH NEEDED</remarks>
917
- public Task < ListResponse < bool > > IsFollowingPlaylistAsync ( string ownerId , string playlistId , List < string > ids )
912
+ public Task < ListResponse < bool > > IsFollowingPlaylistAsync ( string playlistId , List < string > ids )
918
913
{
919
914
if ( ! UseAuth )
920
915
throw new InvalidOperationException ( "Auth is required for IsFollowingPlaylist" ) ;
921
916
922
- string url = _builder . IsFollowingPlaylist ( ownerId , playlistId , ids ) ;
917
+ string url = _builder . IsFollowingPlaylist ( playlistId , ids ) ;
923
918
return DownloadListAsync < bool > ( url ) ;
924
919
}
925
920
926
921
/// <summary>
927
922
/// Check to see if one or more Spotify users are following a specified playlist.
928
923
/// </summary>
929
- /// <param name="ownerId">The Spotify user ID of the person who owns the playlist.</param>
930
924
/// <param name="playlistId">The Spotify ID of the playlist.</param>
931
925
/// <param name="id">A Spotify User ID</param>
932
926
/// <returns></returns>
933
927
/// <remarks>AUTH NEEDED</remarks>
934
- public ListResponse < bool > IsFollowingPlaylist ( string ownerId , string playlistId , string id )
928
+ public ListResponse < bool > IsFollowingPlaylist ( string playlistId , string id )
935
929
{
936
- return IsFollowingPlaylist ( ownerId , playlistId , new List < string > { id } ) ;
930
+ return IsFollowingPlaylist ( playlistId , new List < string > { id } ) ;
937
931
}
938
932
939
933
/// <summary>
940
934
/// Check to see if one or more Spotify users are following a specified playlist asynchronously.
941
935
/// </summary>
942
- /// <param name="ownerId">The Spotify user ID of the person who owns the playlist.</param>
943
936
/// <param name="playlistId">The Spotify ID of the playlist.</param>
944
937
/// <param name="id">A Spotify User ID</param>
945
938
/// <returns></returns>
946
939
/// <remarks>AUTH NEEDED</remarks>
947
- public Task < ListResponse < bool > > IsFollowingPlaylistAsync ( string ownerId , string playlistId , string id )
940
+ public Task < ListResponse < bool > > IsFollowingPlaylistAsync ( string playlistId , string id )
948
941
{
949
- return IsFollowingPlaylistAsync ( ownerId , playlistId , new List < string > { id } ) ;
942
+ return IsFollowingPlaylistAsync ( playlistId , new List < string > { id } ) ;
950
943
}
951
944
952
945
#endregion Follow
0 commit comments