From 544136e7c0be7efcb605444e0a9df48ba0bf9f6c Mon Sep 17 00:00:00 2001 From: "Johnny @PC" Date: Tue, 5 Aug 2014 18:56:29 +0200 Subject: [PATCH] Addition to last commit | Added ability to queue songs --- SpotifyAPI.sln | 2 +- SpotifyAPI/SpoitfyLocalAPI/RemoteHandler.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SpotifyAPI.sln b/SpotifyAPI.sln index 11243bdb..2d6ac3d1 100644 --- a/SpotifyAPI.sln +++ b/SpotifyAPI.sln @@ -7,7 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpotifyAPI", "SpotifyAPI\Sp 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}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpotifyLocalAPIExample", "SpotifyLocalAPIExample\SpotifyLocalAPIExample.csproj", "{C12D46F9-BB35-46D6-B821-522B8F9C3CBE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/SpotifyAPI/SpoitfyLocalAPI/RemoteHandler.cs b/SpotifyAPI/SpoitfyLocalAPI/RemoteHandler.cs index 8be2e750..3e3ca927 100644 --- a/SpotifyAPI/SpoitfyLocalAPI/RemoteHandler.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/RemoteHandler.cs @@ -53,6 +53,10 @@ namespace SpotifyAPI.SpotifyLocalAPI { query("remote/play.json?uri=" + url, true, true, -1); } + internal void SendQueueRequest(String url) + { + query("remote/play.json?uri=" + url + "?action=queue", true, true, -1); + } internal StatusResponse Update() { String response = query("remote/status.json", true, true, -1);