public void rescan(bool playlistsOnly) { string[] param = null; if (playlistsOnly) { param = new string[] { "playlists" }; } BasicCommand command = new BasicCommand(CommandString.RESCAN, null, param); BasicResponse result = client.makeRequest(command); }
private string getServerVersion() { BasicResponse result = client.makeRequest(new BasicCommand(CommandString.VERSION, null, new string[] { "?" })); return(result.ResponseParams[0]); }
public void wipecache() { BasicResponse result = client.makeRequest(new BasicCommand(CommandString.WIPECACHE, null)); }
public void volDown() { BasicResponse result = client.makeRequest(new BasicCommand(CommandString.VOLUME, this, new string[] { "-2.5" })); }
public void prevTrack() { BasicResponse result = client.makeRequest(new BasicCommand(CommandString.PLAYLISTINDEX, this, new string[] { "-1" })); }
public void stop() { BasicResponse result = client.makeRequest(new BasicCommand(CommandString.STOP, this, null)); }
public void pause() { BasicResponse result = client.makeRequest(new BasicCommand(CommandString.PAUSE, this, null)); }
public void play() { BasicResponse result = client.makeRequest(new BasicCommand(CommandString.PLAY, this, null)); }