diff --git a/SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs b/SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs index a957fc15..bc50ab8b 100644 --- a/SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs +++ b/SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs @@ -10,7 +10,7 @@ namespace Example.ASP.Pages private const int LIMIT = 10; private readonly SpotifyClientBuilder _spotifyClientBuilder; - public Paging Playlists { get; set; } + public Paging Playlists { get; set; } public string Next { get; set; } public string Previous { get; set; } diff --git a/SpotifyAPI.Web.Examples/Example.UWP/ViewModels/PlaylistsListViewModel.cs b/SpotifyAPI.Web.Examples/Example.UWP/ViewModels/PlaylistsListViewModel.cs index f1593f8c..ff029e46 100644 --- a/SpotifyAPI.Web.Examples/Example.UWP/ViewModels/PlaylistsListViewModel.cs +++ b/SpotifyAPI.Web.Examples/Example.UWP/ViewModels/PlaylistsListViewModel.cs @@ -15,10 +15,10 @@ namespace Example.UWP.ViewModels { private SpotifyClient _spotify; - private IList _playlists; - public IList Playlists + private IList _playlists; + public IList Playlists { - get => _playlists ?? (_playlists = new List()); + get => _playlists ?? (_playlists = new List()); set => SetProperty(ref _playlists, value); } diff --git a/SpotifyAPI.Web/Clients/Interfaces/IPlaylistsClient.cs b/SpotifyAPI.Web/Clients/Interfaces/IPlaylistsClient.cs index 9df51374..5876f6de 100644 --- a/SpotifyAPI.Web/Clients/Interfaces/IPlaylistsClient.cs +++ b/SpotifyAPI.Web/Clients/Interfaces/IPlaylistsClient.cs @@ -100,7 +100,7 @@ namespace SpotifyAPI.Web /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-list-users-playlists /// /// - Task> GetUsers(string userId, CancellationToken cancel = default); + Task> GetUsers(string userId, CancellationToken cancel = default); /// /// Get a list of the playlists owned or followed by a Spotify user. @@ -112,7 +112,7 @@ namespace SpotifyAPI.Web /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-list-users-playlists /// /// - Task> GetUsers(string userId, PlaylistGetUsersRequest request, CancellationToken cancel = default); + Task> GetUsers(string userId, PlaylistGetUsersRequest request, CancellationToken cancel = default); /// /// Get a playlist owned by a Spotify user. @@ -160,7 +160,7 @@ namespace SpotifyAPI.Web /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-a-list-of-current-users-playlists /// /// - Task> CurrentUsers(CancellationToken cancel = default); + Task> CurrentUsers(CancellationToken cancel = default); /// /// Get a list of the playlists owned or followed by the current Spotify user. @@ -171,7 +171,7 @@ namespace SpotifyAPI.Web /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-a-list-of-current-users-playlists /// /// - Task> CurrentUsers(PlaylistCurrentUsersRequest request, CancellationToken cancel = default); + Task> CurrentUsers(PlaylistCurrentUsersRequest request, CancellationToken cancel = default); /// /// Change a playlist’s name and public/private state. (The user must, of course, own the playlist.) diff --git a/SpotifyAPI.Web/Clients/PlaylistsClient.cs b/SpotifyAPI.Web/Clients/PlaylistsClient.cs index 94286f0b..655295c8 100644 --- a/SpotifyAPI.Web/Clients/PlaylistsClient.cs +++ b/SpotifyAPI.Web/Clients/PlaylistsClient.cs @@ -66,19 +66,19 @@ namespace SpotifyAPI.Web return API.Get>(URLs.PlaylistImages(playlistId), cancel); } - public Task> GetUsers(string userId, CancellationToken cancel = default) + public Task> GetUsers(string userId, CancellationToken cancel = default) { Ensure.ArgumentNotNullOrEmptyString(userId, nameof(userId)); - return API.Get>(URLs.UserPlaylists(userId), cancel); + return API.Get>(URLs.UserPlaylists(userId), cancel); } - public Task> GetUsers(string userId, PlaylistGetUsersRequest request, CancellationToken cancel = default) + public Task> GetUsers(string userId, PlaylistGetUsersRequest request, CancellationToken cancel = default) { Ensure.ArgumentNotNullOrEmptyString(userId, nameof(userId)); Ensure.ArgumentNotNull(request, nameof(request)); - return API.Get>(URLs.UserPlaylists(userId), request.BuildQueryParams(), cancel); + return API.Get>(URLs.UserPlaylists(userId), request.BuildQueryParams(), cancel); } public Task Get(string playlistId, CancellationToken cancel = default) @@ -105,16 +105,16 @@ namespace SpotifyAPI.Web return statusCode == HttpStatusCode.Created; } - public Task> CurrentUsers(CancellationToken cancel = default) + public Task> CurrentUsers(CancellationToken cancel = default) { - return API.Get>(URLs.CurrentUserPlaylists(), cancel); + return API.Get>(URLs.CurrentUserPlaylists(), cancel); } - public Task> CurrentUsers(PlaylistCurrentUsersRequest request, CancellationToken cancel = default) + public Task> CurrentUsers(PlaylistCurrentUsersRequest request, CancellationToken cancel = default) { Ensure.ArgumentNotNull(request, nameof(request)); - return API.Get>(URLs.CurrentUserPlaylists(), request.BuildQueryParams(), cancel); + return API.Get>(URLs.CurrentUserPlaylists(), request.BuildQueryParams(), cancel); } public async Task ChangeDetails(string playlistId, PlaylistChangeDetailsRequest request, CancellationToken cancel = default) diff --git a/SpotifyAPI.Web/Models/Response/CategoryPlaylistsResponse.cs b/SpotifyAPI.Web/Models/Response/CategoryPlaylistsResponse.cs index e65fa8ad..d5e9ab59 100644 --- a/SpotifyAPI.Web/Models/Response/CategoryPlaylistsResponse.cs +++ b/SpotifyAPI.Web/Models/Response/CategoryPlaylistsResponse.cs @@ -2,7 +2,7 @@ namespace SpotifyAPI.Web { public class CategoryPlaylistsResponse { - public Paging Playlists { get; set; } = default!; + public Paging Playlists { get; set; } = default!; } } diff --git a/SpotifyAPI.Web/Models/Response/FeaturedPlaylistsResponse.cs b/SpotifyAPI.Web/Models/Response/FeaturedPlaylistsResponse.cs index f38b7346..c13be617 100644 --- a/SpotifyAPI.Web/Models/Response/FeaturedPlaylistsResponse.cs +++ b/SpotifyAPI.Web/Models/Response/FeaturedPlaylistsResponse.cs @@ -3,7 +3,7 @@ namespace SpotifyAPI.Web public class FeaturedPlaylistsResponse { public string Message { get; set; } = default!; - public Paging Playlists { get; set; } = default!; + public Paging Playlists { get; set; } = default!; } } diff --git a/SpotifyAPI.Web/Models/Response/SearchResponse.cs b/SpotifyAPI.Web/Models/Response/SearchResponse.cs index 064acfb0..7690e8e0 100644 --- a/SpotifyAPI.Web/Models/Response/SearchResponse.cs +++ b/SpotifyAPI.Web/Models/Response/SearchResponse.cs @@ -7,7 +7,7 @@ namespace SpotifyAPI.Web public Paging Tracks { get; set; } = default!; public Paging Shows { get; set; } = default!; public Paging Episodes { get; set; } = default!; - public Paging Playlists { get; set; } = default!; + public Paging Playlists { get; set; } = default!; } } diff --git a/SpotifyAPI.Web/Models/Response/SimplePlaylist.cs b/SpotifyAPI.Web/Models/Response/SimplePlaylist.cs deleted file mode 100644 index 3dc42554..00000000 --- a/SpotifyAPI.Web/Models/Response/SimplePlaylist.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Collections.Generic; -namespace SpotifyAPI.Web -{ - /// - /// Docs - /// - public class SimplePlaylist - { - public bool Collaborative { get; set; } - public string Description { get; set; } = default!; - public Dictionary ExternalUrls { get; set; } = default!; - public string Href { get; set; } = default!; - public string Id { get; set; } = default!; - public List Images { get; set; } = default!; - public string Name { get; set; } = default!; - public PublicUser Owner { get; set; } = default!; - public bool? Public { get; set; } - public string SnapshotId { get; set; } = default!; - - /// - /// A list of PlaylistTracks, which items can be a FullTrack or FullEpisode - /// - /// - public Paging> Tracks { get; set; } = default!; - public string Type { get; set; } = default!; - public string Uri { get; set; } = default!; - } -} -