Beispiel #1
0
        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);
        }
Beispiel #2
0
        private string getServerVersion()
        {
            BasicResponse result = client.makeRequest(new BasicCommand(CommandString.VERSION, null, new string[] { "?" }));

            return(result.ResponseParams[0]);
        }
Beispiel #3
0
 public void wipecache()
 {
     BasicResponse result = client.makeRequest(new BasicCommand(CommandString.WIPECACHE, null));
 }
Beispiel #4
0
 public void volDown()
 {
     BasicResponse result = client.makeRequest(new BasicCommand(CommandString.VOLUME, this, new string[] { "-2.5" }));
 }
Beispiel #5
0
 public void prevTrack()
 {
     BasicResponse result = client.makeRequest(new BasicCommand(CommandString.PLAYLISTINDEX, this, new string[] { "-1" }));
 }
Beispiel #6
0
 public void stop()
 {
     BasicResponse result = client.makeRequest(new BasicCommand(CommandString.STOP, this, null));
 }
Beispiel #7
0
 public void pause()
 {
     BasicResponse result = client.makeRequest(new BasicCommand(CommandString.PAUSE, this, null));
 }
Beispiel #8
0
 public void play()
 {
     BasicResponse result = client.makeRequest(new BasicCommand(CommandString.PLAY, this, null));
 }