From 0b78f12df324e08a916c4e97a525328fc8e1a5ce Mon Sep 17 00:00:00 2001 From: "Johnny @PC" Date: Sun, 20 Jul 2014 22:42:46 +0200 Subject: [PATCH] Added support for Spotify's Web API - New Namespaces -> SpotifyAPI.SpotifyLocalAPI -> SpotifyAPI.SpotifyWebAPI -> SpotifyAPI.SpotifyWebAPI.Models - Wiki created, examples coming soon - Added example for the new Web API - README updated --- README.md | 160 +--------- SpotifyAPI.sln | 8 +- SpotifyAPI/Properties/AssemblyInfo.cs | 4 +- SpotifyAPI/{ => SpoitfyLocalAPI}/CFID.cs | 2 +- SpotifyAPI/{ => SpoitfyLocalAPI}/Enum.cs | 2 +- SpotifyAPI/{ => SpoitfyLocalAPI}/Events.cs | 2 +- .../ExtendedWebClient.cs | 2 +- .../{ => SpoitfyLocalAPI}/RemoteHandler.cs | 4 +- .../{ => SpoitfyLocalAPI}/SpotifyAPI.cs | 9 +- .../SpotifyEventHandler.cs | 8 +- .../SpotifyMusicHandler.cs | 4 +- .../{ => SpoitfyLocalAPI}/StatusResponse.cs | 2 +- SpotifyAPI/{ => SpoitfyLocalAPI}/Track.cs | 2 +- SpotifyAPI/SpotifyAPI.csproj | 49 +++- SpotifyAPI/SpotifyWebAPI/AlbumType.cs | 23 ++ .../SpotifyWebAPI/AutorizationCodeAuth.cs | 124 ++++++++ .../SpotifyWebAPI/ClientCredentialsAuth.cs | 43 +++ SpotifyAPI/SpotifyWebAPI/ImplicitGrantAuth.cs | 71 +++++ SpotifyAPI/SpotifyWebAPI/Models/BasicModel.cs | 20 ++ SpotifyAPI/SpotifyWebAPI/Models/FullAlbum.cs | 45 +++ SpotifyAPI/SpotifyWebAPI/Models/FullArtist.cs | 31 ++ .../SpotifyWebAPI/Models/FullPlaylist.cs | 39 +++ SpotifyAPI/SpotifyWebAPI/Models/FullTrack.cs | 48 +++ .../SpotifyWebAPI/Models/GeneralModels.cs | 71 +++++ SpotifyAPI/SpotifyWebAPI/Models/Paging.cs | 27 ++ .../SpotifyWebAPI/Models/PrivateProfile.cs | 31 ++ .../SpotifyWebAPI/Models/PublicProfile.cs | 23 ++ SpotifyAPI/SpotifyWebAPI/Models/SearchItem.cs | 19 ++ .../SpotifyWebAPI/Models/SimpleAlbum.cs | 31 ++ .../SpotifyWebAPI/Models/SimpleArtist.cs | 25 ++ .../SpotifyWebAPI/Models/SimplePlaylist.cs | 33 +++ .../SpotifyWebAPI/Models/SimpleTrack.cs | 37 +++ SpotifyAPI/SpotifyWebAPI/Models/Token.cs | 39 +++ SpotifyAPI/SpotifyWebAPI/Scope.cs | 27 ++ SpotifyAPI/SpotifyWebAPI/SearchType.cs | 21 ++ SpotifyAPI/SpotifyWebAPI/SimpleHttpServer.cs | 274 ++++++++++++++++++ .../SpotifyWebAPI/SpotifyWebAPIClass.cs | 175 +++++++++++ SpotifyAPI/SpotifyWebAPI/StringAttribute.cs | 18 ++ SpotifyAPI/SpotifyWebAPI/Util.cs | 56 ++++ SpotifyAPI_Example/Form1.Designer.cs | 2 +- SpotifyAPI_Example/Form1.cs | 16 +- SpotifyWebAPIExample/App.config | 6 + SpotifyWebAPIExample/Program.cs | 145 +++++++++ .../Properties/AssemblyInfo.cs | 36 +++ .../SpotifyWebAPIExample.csproj | 66 +++++ 45 files changed, 1680 insertions(+), 200 deletions(-) rename SpotifyAPI/{ => SpoitfyLocalAPI}/CFID.cs (94%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/Enum.cs (90%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/Events.cs (96%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/ExtendedWebClient.cs (92%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/RemoteHandler.cs (97%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/SpotifyAPI.cs (91%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/SpotifyEventHandler.cs (95%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/SpotifyMusicHandler.cs (97%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/StatusResponse.cs (95%) rename SpotifyAPI/{ => SpoitfyLocalAPI}/Track.cs (99%) create mode 100644 SpotifyAPI/SpotifyWebAPI/AlbumType.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/AutorizationCodeAuth.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/ClientCredentialsAuth.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/ImplicitGrantAuth.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/BasicModel.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/FullAlbum.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/FullArtist.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/FullPlaylist.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/FullTrack.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/GeneralModels.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/Paging.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/PrivateProfile.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/PublicProfile.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/SearchItem.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/SimpleAlbum.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/SimpleArtist.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/SimplePlaylist.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/SimpleTrack.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Models/Token.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Scope.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/SearchType.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/SimpleHttpServer.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/SpotifyWebAPIClass.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/StringAttribute.cs create mode 100644 SpotifyAPI/SpotifyWebAPI/Util.cs create mode 100644 SpotifyWebAPIExample/App.config create mode 100644 SpotifyWebAPIExample/Program.cs create mode 100644 SpotifyWebAPIExample/Properties/AssemblyInfo.cs create mode 100644 SpotifyWebAPIExample/SpotifyWebAPIExample.csproj diff --git a/README.md b/README.md index 2c5b42c9..f0b59144 100644 --- a/README.md +++ b/README.md @@ -10,162 +10,4 @@ Following 3 files will be needed for all features: + nircmd.dll (Used to Mute & UnMute Spotify) Screenshot of the Example: -![alt text](http://i.imgur.com/R9Xsma0.png "Example Screen") - -Update: -=== -This API will also support the "new" Spotify Web API soon, following things will be possible: - -(Ticked = implemented and ready to push,Not ticked = Work in Progress) - -- [ ] Get an Album -- [ ] Get Several Albums -- [ ] Get an Album'S Tracks -- [ ] Get an Artist -- [ ] Get Several Artists -- [ ] Get an Artist's Albums -- [ ] Get an Artist's Top Tracks -- [ ] Get an Artist'S Related Artists -- [ ] Get a Track -- [ ] Get several Tracks -- [ ] Search for an Item -- [x] Get a User's Profile -- [x] Get Current User’s Profile -- [x] Get a List of a User's Profile -- [x] Get a Playlist -- [x] Get a Playlist's Tracks -- [ ] Create a Playlist -- [ ] Add Tracks to a Playlist - -With this Update, there will be 2 new/modified namespaces: -> SpotifyAPI.SpotifyLocalAPI (Old local API) - -> SpotifyAPI.SpotifyWebAPI (New web API) - -___ - -Usage: -============== - - -### SpotifyAPI -#####Boolean Connect() -> Connects the SpotifyAPI to the Spotify Client (Needs to be called before making calls, Spotify has to run) -> Returns true if it was successful - -#####void Update() -> Updates Information about Tracks etc. - -#####void RunSpotify() -> Runs Spotify (Client has to run for API Calls) - -#####void RunSpotifyWebHelper() -> Runs SpotifyWebHelper (Client has to run for API Calls) - -#####static Boolean IsSpotifyRunning() -> Returns true, if Spotify is running - -#####static Boolean IsSpotifyWebHelperRunning() -> Returns true, if SpotifyWebHelper is running - -#####static Boolean IsValidSpotifyURL(String SpotifyURL) -> Returns true, if the provided Spotify URL is working (Not working yet) - -#####[SpotifyMusicHandler](https://github.com/JohnnyCrazy/SpotifyAPI-NET#spotifymusichandler) GetMusicHandler() -> Returns the MusicHandler - -#####[SpotifyEventHandler](https://github.com/JohnnyCrazy/SpotifyAPI-NET#spotifyeventhandler) GetEventHandler() -> Returns the EventHandler - - -### SpotifyMusicHandler -#####void Play() -> Play "button" - -#####void Pause() -> Pause "button" - -#####void Skip() -> Skip Track - -#####void Previous() -> Previous Track - -#####void PlayURL(String SpotifyURI) -> Plays the provided URI - -#####double GetVolume() -> Returns the current volume (0.00 - 1.00) - -#####Boolean IsAdRunning() -> Returns true, if an AD is running - -#####double GetTrackPostion() -> Returns the current position of the Track - -#####void Mute() -> Mutes Spotify (Requires nircmd.dll) - -#####void UnMute() -> Unmutes Spotify (Requires nircmd.dll - -#####Boolean IsPlaying() -> Returns true, if Spotify is playing atm - -#####[Track](https://github.com/JohnnyCrazy/SpotifyAPI-NET#track) GetCurrentTrack() -> Returns the current Track - -#####StatusResponse GetStatusResponse() -> Returns the StatusResponse, which contains all Information gathered by the Call (Should not be used at all) - - -### SpotifyEventHandler -#####Event OnTrackChange -> Triggered, when the Track gets changed - -#####Event OnPlayStateChange -> Triggered, when Spotify's Play/Pause-State changes - -#####Event OnVolumeChange -> Triggered, when the volume gets changed - -#####Event TrackTimeChangeEventHandler -> Triggered, when the current trackposition changes - -#####void ListenForEvents(Boolean listen) -> Should it listen for events? - -#####void SetSynchronizingObject(ISynchronizeInvoke obj) -> Sets the synced object, so no Invoke is required (Events doesnt get called from the Main-Thread) - - -### Track -#####String GetTrackName() -> Returns Track-name - -#####String GetArtistName() -> Returns Artist-name - -#####String GetAlbumName() -> Returns Album-name - -#####int GetLength() -> Returns the Track lenght - -#####String GetAlbumURI() -> Returns the URI for the album - -#####String GetTrackURI() -> Returns the URI for the Track - -#####String GetArtistURI() -> Returns the URI for the Artist - -#####String GetAlbumArtURL(AlbumArtSize size) -> Returns the URL of the Albumart based on the choosen size - -#####Bitmap GetAlbumArt(AlbumArtSize size) -> Returns a Bitmap of the Albumart based on the choosen size - -#####Bitmap GetAlbumArtAsync(AlbumArtSize size) -> Returns a Bitmap of the Albumart based on the choosen size asynchronously +![alt text](http://i.imgur.com/R9Xsma0.png "Example Screen") \ No newline at end of file diff --git a/SpotifyAPI.sln b/SpotifyAPI.sln index 357b15d2..11243bdb 100644 --- a/SpotifyAPI.sln +++ b/SpotifyAPI.sln @@ -1,10 +1,12 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 -VisualStudioVersion = 12.0.21005.1 +VisualStudioVersion = 12.0.30324.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpotifyAPI", "SpotifyAPI\SpotifyAPI.csproj", "{EBBE35E2-7B91-4D7D-B8FC-3A0472F5119D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpotifyWebAPIExample", "SpotifyWebAPIExample\SpotifyWebAPIExample.csproj", "{004B45C3-BB98-4E62-AD11-D80BA64FEB8E}" +EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpotifyAPI_Example", "SpotifyAPI_Example\SpotifyAPI_Example.csproj", "{C12D46F9-BB35-46D6-B821-522B8F9C3CBE}" EndProject Global @@ -17,6 +19,10 @@ Global {EBBE35E2-7B91-4D7D-B8FC-3A0472F5119D}.Debug|Any CPU.Build.0 = Debug|Any CPU {EBBE35E2-7B91-4D7D-B8FC-3A0472F5119D}.Release|Any CPU.ActiveCfg = Release|Any CPU {EBBE35E2-7B91-4D7D-B8FC-3A0472F5119D}.Release|Any CPU.Build.0 = Release|Any CPU + {004B45C3-BB98-4E62-AD11-D80BA64FEB8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {004B45C3-BB98-4E62-AD11-D80BA64FEB8E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {004B45C3-BB98-4E62-AD11-D80BA64FEB8E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {004B45C3-BB98-4E62-AD11-D80BA64FEB8E}.Release|Any CPU.Build.0 = Release|Any CPU {C12D46F9-BB35-46D6-B821-522B8F9C3CBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C12D46F9-BB35-46D6-B821-522B8F9C3CBE}.Debug|Any CPU.Build.0 = Debug|Any CPU {C12D46F9-BB35-46D6-B821-522B8F9C3CBE}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/SpotifyAPI/Properties/AssemblyInfo.cs b/SpotifyAPI/Properties/AssemblyInfo.cs index 3e015332..a56439af 100644 --- a/SpotifyAPI/Properties/AssemblyInfo.cs +++ b/SpotifyAPI/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ using System.Runtime.InteropServices; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die mit einer Assembly verknüpft sind. -[assembly: AssemblyTitle("SpotifyAPI")] +[assembly: AssemblyTitle("SpotifyLocalAPIClass")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SpotifyAPI")] +[assembly: AssemblyProduct("SpotifyLocalAPIClass")] [assembly: AssemblyCopyright("Copyright © 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/SpotifyAPI/CFID.cs b/SpotifyAPI/SpoitfyLocalAPI/CFID.cs similarity index 94% rename from SpotifyAPI/CFID.cs rename to SpotifyAPI/SpoitfyLocalAPI/CFID.cs index 866de8be..5ddae128 100644 --- a/SpotifyAPI/CFID.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/CFID.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { /// /// JSON Response, used internaly diff --git a/SpotifyAPI/Enum.cs b/SpotifyAPI/SpoitfyLocalAPI/Enum.cs similarity index 90% rename from SpotifyAPI/Enum.cs rename to SpotifyAPI/SpoitfyLocalAPI/Enum.cs index 3a20cd6d..98a5d9ae 100644 --- a/SpotifyAPI/Enum.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/Enum.cs @@ -1,7 +1,7 @@ using System; using System.Text; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { /// /// Enum for the AlbumArt diff --git a/SpotifyAPI/Events.cs b/SpotifyAPI/SpoitfyLocalAPI/Events.cs similarity index 96% rename from SpotifyAPI/Events.cs rename to SpotifyAPI/SpoitfyLocalAPI/Events.cs index 02099887..f35fa376 100644 --- a/SpotifyAPI/Events.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/Events.cs @@ -1,7 +1,7 @@ using System; using System.Text; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { /// /// Event gets triggered, when the Track is changed diff --git a/SpotifyAPI/ExtendedWebClient.cs b/SpotifyAPI/SpoitfyLocalAPI/ExtendedWebClient.cs similarity index 92% rename from SpotifyAPI/ExtendedWebClient.cs rename to SpotifyAPI/SpoitfyLocalAPI/ExtendedWebClient.cs index e7485210..dd9c6a04 100644 --- a/SpotifyAPI/ExtendedWebClient.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/ExtendedWebClient.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.Net; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { class ExtendedWebClient : WebClient { diff --git a/SpotifyAPI/RemoteHandler.cs b/SpotifyAPI/SpoitfyLocalAPI/RemoteHandler.cs similarity index 97% rename from SpotifyAPI/RemoteHandler.cs rename to SpotifyAPI/SpoitfyLocalAPI/RemoteHandler.cs index 96f4a044..8be2e750 100644 --- a/SpotifyAPI/RemoteHandler.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/RemoteHandler.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using System.Threading; using Newtonsoft.Json; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { class RemoteHandler { @@ -119,7 +119,7 @@ namespace SpotifyAPIv1 try { //Need to find a better solution - if (SpotifyAPI.IsSpotifyRunning()) + if (SpotifyLocalAPIClass.IsSpotifyRunning()) response = "[ " + wc.DownloadString(a) + " ]"; } catch (Exception z) diff --git a/SpotifyAPI/SpotifyAPI.cs b/SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs similarity index 91% rename from SpotifyAPI/SpotifyAPI.cs rename to SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs index 7a87474b..fd297ca0 100644 --- a/SpotifyAPI/SpotifyAPI.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs @@ -4,14 +4,14 @@ using Newtonsoft.Json; using System.Text.RegularExpressions; using System.Diagnostics; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { - public class SpotifyAPI + public class SpotifyLocalAPIClass { SpotifyMusicHandler mh; RemoteHandler rh; SpotifyEventHandler eh; - public SpotifyAPI() + public SpotifyLocalAPIClass() { rh = RemoteHandler.GetInstance(); mh = new SpotifyMusicHandler(); @@ -21,6 +21,7 @@ namespace SpotifyAPIv1 /// /// Connects with Spotify. Needs to be called before all other SpotifyAPI functions /// + /// Returns true, if it was successful, false if not public Boolean Connect() { return rh.Init(); @@ -95,7 +96,7 @@ namespace SpotifyAPIv1 /// public void Update() { - if (!SpotifyAPI.IsSpotifyWebHelperRunning() || !SpotifyAPI.IsSpotifyRunning()) + if (!SpotifyLocalAPIClass.IsSpotifyWebHelperRunning() || !SpotifyLocalAPIClass.IsSpotifyRunning()) return; mh.Update(rh.Update()); } diff --git a/SpotifyAPI/SpotifyEventHandler.cs b/SpotifyAPI/SpoitfyLocalAPI/SpotifyEventHandler.cs similarity index 95% rename from SpotifyAPI/SpotifyEventHandler.cs rename to SpotifyAPI/SpoitfyLocalAPI/SpotifyEventHandler.cs index 8f1c84a9..dfed82aa 100644 --- a/SpotifyAPI/SpotifyEventHandler.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/SpotifyEventHandler.cs @@ -2,15 +2,15 @@ using System.Collections.Generic; using System.Linq; using System.Text; -using SpotifyAPIv1; +using SpotifyAPI.SpotifyLocalAPI; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { public class SpotifyEventHandler { private Boolean listen = false; private System.Timers.Timer timer; - private SpotifyAPI api; + private SpotifyLocalAPIClass api; private SpotifyMusicHandler mh; private StatusResponse response; @@ -24,7 +24,7 @@ namespace SpotifyAPIv1 public event VolumeChangeEventHandler OnVolumeChange; public event TrackTimeChangeEventHandler OnTrackTimeChange; - public SpotifyEventHandler(SpotifyAPI api, SpotifyMusicHandler mh) + public SpotifyEventHandler(SpotifyLocalAPIClass api, SpotifyMusicHandler mh) { timer = new System.Timers.Timer(); timer.Interval = 50; diff --git a/SpotifyAPI/SpotifyMusicHandler.cs b/SpotifyAPI/SpoitfyLocalAPI/SpotifyMusicHandler.cs similarity index 97% rename from SpotifyAPI/SpotifyMusicHandler.cs rename to SpotifyAPI/SpoitfyLocalAPI/SpotifyMusicHandler.cs index a9a32380..243c39e7 100644 --- a/SpotifyAPI/SpotifyMusicHandler.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/SpotifyMusicHandler.cs @@ -6,7 +6,7 @@ using System.Runtime.InteropServices; using System.Windows.Forms; using System.IO; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { public class SpotifyMusicHandler { @@ -56,7 +56,7 @@ namespace SpotifyAPIv1 /// /// Plays a Spotify URI /// - /// The Spotify URI. Can be checked with + /// The Spotify URI. Can be checked with public void PlayURL(String uri) { rh.SendPlayRequest(uri); diff --git a/SpotifyAPI/StatusResponse.cs b/SpotifyAPI/SpoitfyLocalAPI/StatusResponse.cs similarity index 95% rename from SpotifyAPI/StatusResponse.cs rename to SpotifyAPI/SpoitfyLocalAPI/StatusResponse.cs index fc415624..42682568 100644 --- a/SpotifyAPI/StatusResponse.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/StatusResponse.cs @@ -3,7 +3,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { public class StatusResponse { diff --git a/SpotifyAPI/Track.cs b/SpotifyAPI/SpoitfyLocalAPI/Track.cs similarity index 99% rename from SpotifyAPI/Track.cs rename to SpotifyAPI/SpoitfyLocalAPI/Track.cs index 3d1cd61f..5ec74e66 100644 --- a/SpotifyAPI/Track.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/Track.cs @@ -6,7 +6,7 @@ using System.Drawing; using System.Net; using System.IO; -namespace SpotifyAPIv1 +namespace SpotifyAPI.SpotifyLocalAPI { public class Track { diff --git a/SpotifyAPI/SpotifyAPI.csproj b/SpotifyAPI/SpotifyAPI.csproj index 6e78dde9..ce45cb39 100644 --- a/SpotifyAPI/SpotifyAPI.csproj +++ b/SpotifyAPI/SpotifyAPI.csproj @@ -7,7 +7,7 @@ {EBBE35E2-7B91-4D7D-B8FC-3A0472F5119D} Library Properties - SpotifyAPIv1 + SpotifyAPI.SpotifyLocalAPI SpotifyAPI v4.5 512 @@ -38,6 +38,7 @@ + @@ -46,23 +47,49 @@ - - - + + + Component - - - - - + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file