]> git.basschouten.com Git - openhab-addons.git/blob
ac43e707eeeba91302e55b39d683ff9a26f79017
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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     EQ_QUERY("EQ?"),
33     DISPINFO("DISPINFO"),
34     DISPLINE("DISPLINE"),
35     DISPLINE1("DISPLINE1"),
36     DISPLINE2("DISPLINE2"),
37     DISPLINE3("DISPLINE3"),
38     DISPLINE4("DISPLINE4"),
39     NAME("NAME"),
40     ON("ON"),
41     OFF("OFF"),
42     SOURCE("SRC"),
43     VOLUME("VOL"),
44     MUTE_ON("MUTEON"),
45     MUTE_OFF("MUTEOFF"),
46     TREBLE("TREB"),
47     BASS("BASS"),
48     BALANCE("BAL"),
49     LOUDNESS("LOUDCMP"),
50     PLAYPAUSE("PLAYPAUSE"),
51     PREV("PREV"),
52     NEXT("NEXT"),
53     DND_ON("DNDON"),
54     DND_OFF("DNDOFF"),
55     PARTY_ON("PARTY1"),
56     PARTY_OFF("PARTY0");
57
58     private final String value;
59
60     NuvoCommand(String value) {
61         this.value = value;
62     }
63
64     /**
65      * Get the command name
66      *
67      * @return the command name
68      */
69     public String getValue() {
70         return value;
71     }
72 }