From 3e7265a65759fd3de79b552f157a258f04632f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Hou=C5=A1ka?= Date: Thu, 8 Sep 2016 12:38:37 +0200 Subject: [PATCH] Async methods return Tasks instead of void. --- SpotifyAPI/Local/RemoteHandler.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SpotifyAPI/Local/RemoteHandler.cs b/SpotifyAPI/Local/RemoteHandler.cs index 6e627d7d..45429a93 100644 --- a/SpotifyAPI/Local/RemoteHandler.cs +++ b/SpotifyAPI/Local/RemoteHandler.cs @@ -22,23 +22,23 @@ namespace SpotifyAPI.Local return !string.IsNullOrEmpty(CfidKey); } - internal async void SendPauseRequest() + internal async Task SendPauseRequest() { await QueryAsync("remote/pause.json?pause=true", true, true, -1); } - internal async void SendPlayRequest() + internal async Task SendPlayRequest() { await QueryAsync("remote/pause.json?pause=false", true, true, -1); } - internal async void SendPlayRequest(string url, string context = "") + internal async Task SendPlayRequest(string url, string context = "") { // TODO: instead of having an empty context, one way to fix the bug with the playback time beyond the length of a song would be to provide a 1-song context, and it would be fixed. await QueryAsync($"remote/play.json?uri={url}&context={context}", true, true, -1); } - internal async void SendQueueRequest(string url) + internal async Task SendQueueRequest(string url) { await QueryAsync("remote/play.json?uri=" + url + "?action=queue", true, true, -1); }