]> git.basschouten.com Git - openhab-addons.git/blob
bd5bb74bc8b1e7d19a3b22b5e7507dc104fb3c1b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.nuvo.internal.communication;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Represents the different kinds of commands
19  *
20  * @author Michael Lobstein - Initial contribution
21  */
22 @NonNullByDefault
23 public enum NuvoCommand {
24     GET_CONTROLLER_VERSION("VER"),
25     ALLMUTE_ON("MUTE1"),
26     ALLMUTE_OFF("MUTE0"),
27     ALLOFF("ALLOFF"),
28     PAGE_ON("PAGE1"),
29     PAGE_OFF("PAGE0"),
30     CFGTIME("CFGTIME"),
31     STATUS("STATUS"),
32     STATUS_QUERY("STATUS?"),
33     EQ_QUERY("EQ?"),
34     DISPINFO("DISPINFO"),
35     DISPLINE("DISPLINE"),
36     DISPLINE1("DISPLINE1"),
37     DISPLINE2("DISPLINE2"),
38     DISPLINE3("DISPLINE3"),
39     DISPLINE4("DISPLINE4"),
40     NAME("NAME"),
41     ON("ON"),
42     OFF("OFF"),
43     SOURCE("SRC"),
44     FAVORITE("FAV"),
45     VOLUME("VOL"),
46     MUTE_ON("MUTEON"),
47     MUTE_OFF("MUTEOFF"),
48     TREBLE("TREB"),
49     BASS("BASS"),
50     BALANCE("BAL"),
51     LOUDNESS("LOUDCMP"),
52     PLAYPAUSE("PLAYPAUSE"),
53     PREV("PREV"),
54     NEXT("NEXT"),
55     DND_ON("DNDON"),
56     DND_OFF("DNDOFF"),
57     PARTY_ON("PARTY1"),
58     PARTY_OFF("PARTY0");
59
60     private final String value;
61
62     NuvoCommand(String value) {
63         this.value = value;
64     }
65
66     /**
67      * Get the command name
68      *
69      * @return the command name
70      */
71     public String getValue() {
72         return value;
73     }
74 }