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

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