Update bose-soundtouch-control.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Tue, 6 Aug 2019 02:13:49 +0000 (19:13 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Tue, 6 Aug 2019 02:13:49 +0000 (19:13 -0700)
official/bose-soundtouch-control.groovy

index 7df3ae9240e73dc155803f28d45458d61ba93bd2..bd0c6273456acd529e710ed9e551e7bc8fc3afe2 100755 (executable)
@@ -78,13 +78,7 @@ def mainPage() {
                                "Turn Off",
                                "Toggle Play/Pause",
                                "Skip to Next Track",
                                "Turn Off",
                                "Toggle Play/Pause",
                                "Skip to Next Track",
-                               "Skip to Beginning/Previous Track",
-                "Play Preset 1",
-                "Play Preset 2",
-                "Play Preset 3",
-                "Play Preset 4",
-                "Play Preset 5",
-                "Play Preset 6"
+                               "Skip to Beginning/Previous Track"
                        ]
                }
                section {
                        ]
                }
                section {
@@ -234,24 +228,6 @@ private takeAction(evt) {
                case "Skip to Beginning/Previous Track":
                        options ? bose.previousTrack(options) : bose.previousTrack()
                        break
                case "Skip to Beginning/Previous Track":
                        options ? bose.previousTrack(options) : bose.previousTrack()
                        break
-        case "Play Preset 1":
-                       options ? bose.preset1(options) : bose.preset1()
-                       break
-        case "Play Preset 2":
-                       options ? bose.preset2(options) : bose.preset2()
-                       break 
-        case "Play Preset 3":
-                       options ? bose.preset3(options) : bose.preset3()
-                       break
-        case "Play Preset 4":
-                       options ? bose.preset4(options) : bose.preset4()
-                       break
-        case "Play Preset 5":
-                       options ? bose.preset5(options) : bose.preset5()
-                       break
-        case "Play Preset 6":
-                       options ? bose.preset6(options) : bose.preset6()
-                       break
                default:
                        log.error "Action type '$actionType' not defined"
        }
                default:
                        log.error "Action type '$actionType' not defined"
        }