From 19dc8301fad43e0856b07f6d318a24d084621417 Mon Sep 17 00:00:00 2001 From: Steven Hack Date: Fri, 30 Nov 2018 12:02:55 +0100 Subject: [PATCH 1/2] Added app-remote-control authorization scope --- SpotifyAPI.Web/Enums/Scope.cs | 85 ++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/SpotifyAPI.Web/Enums/Scope.cs b/SpotifyAPI.Web/Enums/Scope.cs index 534d34c6c..d292c4b43 100644 --- a/SpotifyAPI.Web/Enums/Scope.cs +++ b/SpotifyAPI.Web/Enums/Scope.cs @@ -2,61 +2,64 @@ namespace SpotifyAPI.Web.Enums { - [Flags] - public enum Scope - { - [String("")] - None = 1, + [Flags] + public enum Scope + { + [String("")] + None = 1, - [String("playlist-modify-public")] - PlaylistModifyPublic = 2, + [String("playlist-modify-public")] + PlaylistModifyPublic = 2, - [String("playlist-modify-private")] - PlaylistModifyPrivate = 4, + [String("playlist-modify-private")] + PlaylistModifyPrivate = 4, - [String("playlist-read-private")] - PlaylistReadPrivate = 8, + [String("playlist-read-private")] + PlaylistReadPrivate = 8, - [String("streaming")] - Streaming = 16, + [String("streaming")] + Streaming = 16, - [String("user-read-private")] - UserReadPrivate = 32, + [String("user-read-private")] + UserReadPrivate = 32, - [String("user-read-email")] - UserReadEmail = 64, + [String("user-read-email")] + UserReadEmail = 64, - [String("user-library-read")] - UserLibraryRead = 128, + [String("user-library-read")] + UserLibraryRead = 128, - [String("user-library-modify")] - UserLibraryModify = 256, + [String("user-library-modify")] + UserLibraryModify = 256, - [String("user-follow-modify")] - UserFollowModify = 512, + [String("user-follow-modify")] + UserFollowModify = 512, - [String("user-follow-read")] - UserFollowRead = 1024, + [String("user-follow-read")] + UserFollowRead = 1024, - [String("user-read-birthdate")] - UserReadBirthdate = 2048, + [String("user-read-birthdate")] + UserReadBirthdate = 2048, - [String("user-top-read")] - UserTopRead = 4096, + [String("user-top-read")] + UserTopRead = 4096, - [String("playlist-read-collaborative")] - PlaylistReadCollaborative = 8192, + [String("playlist-read-collaborative")] + PlaylistReadCollaborative = 8192, - [String("user-read-recently-played")] - UserReadRecentlyPlayed = 16384, + [String("user-read-recently-played")] + UserReadRecentlyPlayed = 16384, - [String("user-read-playback-state")] - UserReadPlaybackState = 32768, + [String("user-read-playback-state")] + UserReadPlaybackState = 32768, - [String("user-modify-playback-state")] - UserModifyPlaybackState = 65536, - - [String("user-read-currently-playing")] - UserReadCurrentlyPlaying = 131072 - } + [String("user-modify-playback-state")] + UserModifyPlaybackState = 65536, + + [String("user-read-currently-playing")] + UserReadCurrentlyPlaying = 131072, + + [String("app-remote-control")] + AppRemoteControl = 262144 + } } From e9c8234d7ecad450e20ddecabd16016ccece2aec Mon Sep 17 00:00:00 2001 From: Steven Hack Date: Fri, 30 Nov 2018 12:04:25 +0100 Subject: [PATCH 2/2] Fixed tabs to spaces --- SpotifyAPI.Web/Enums/Scope.cs | 84 +++++++++++++++++------------------ 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/SpotifyAPI.Web/Enums/Scope.cs b/SpotifyAPI.Web/Enums/Scope.cs index d292c4b43..569c29e79 100644 --- a/SpotifyAPI.Web/Enums/Scope.cs +++ b/SpotifyAPI.Web/Enums/Scope.cs @@ -2,64 +2,64 @@ namespace SpotifyAPI.Web.Enums { - [Flags] - public enum Scope - { - [String("")] - None = 1, + [Flags] + public enum Scope + { + [String("")] + None = 1, - [String("playlist-modify-public")] - PlaylistModifyPublic = 2, + [String("playlist-modify-public")] + PlaylistModifyPublic = 2, - [String("playlist-modify-private")] - PlaylistModifyPrivate = 4, + [String("playlist-modify-private")] + PlaylistModifyPrivate = 4, - [String("playlist-read-private")] - PlaylistReadPrivate = 8, + [String("playlist-read-private")] + PlaylistReadPrivate = 8, - [String("streaming")] - Streaming = 16, + [String("streaming")] + Streaming = 16, - [String("user-read-private")] - UserReadPrivate = 32, + [String("user-read-private")] + UserReadPrivate = 32, - [String("user-read-email")] - UserReadEmail = 64, + [String("user-read-email")] + UserReadEmail = 64, - [String("user-library-read")] - UserLibraryRead = 128, + [String("user-library-read")] + UserLibraryRead = 128, - [String("user-library-modify")] - UserLibraryModify = 256, + [String("user-library-modify")] + UserLibraryModify = 256, - [String("user-follow-modify")] - UserFollowModify = 512, + [String("user-follow-modify")] + UserFollowModify = 512, - [String("user-follow-read")] - UserFollowRead = 1024, + [String("user-follow-read")] + UserFollowRead = 1024, - [String("user-read-birthdate")] - UserReadBirthdate = 2048, + [String("user-read-birthdate")] + UserReadBirthdate = 2048, - [String("user-top-read")] - UserTopRead = 4096, + [String("user-top-read")] + UserTopRead = 4096, - [String("playlist-read-collaborative")] - PlaylistReadCollaborative = 8192, + [String("playlist-read-collaborative")] + PlaylistReadCollaborative = 8192, - [String("user-read-recently-played")] - UserReadRecentlyPlayed = 16384, + [String("user-read-recently-played")] + UserReadRecentlyPlayed = 16384, - [String("user-read-playback-state")] - UserReadPlaybackState = 32768, + [String("user-read-playback-state")] + UserReadPlaybackState = 32768, - [String("user-modify-playback-state")] - UserModifyPlaybackState = 65536, + [String("user-modify-playback-state")] + UserModifyPlaybackState = 65536, - [String("user-read-currently-playing")] - UserReadCurrentlyPlaying = 131072, + [String("user-read-currently-playing")] + UserReadCurrentlyPlaying = 131072, - [String("app-remote-control")] - AppRemoteControl = 262144 - } + [String("app-remote-control")] + AppRemoteControl = 262144 + } }