]> git.basschouten.com Git - openhab-addons.git/blob
9370ba10a0514708fbe4d78433c6a4693a9b22a1
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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     FAVORITE("FAV"),
44     VOLUME("VOL"),
45     MUTE_ON("MUTEON"),
46     MUTE_OFF("MUTEOFF"),
47     TREBLE("TREB"),
48     BASS("BASS"),
49     BALANCE("BAL"),
50     LOUDNESS("LOUDCMP"),
51     PLAYPAUSE("PLAYPAUSE"),
52     PREV("PREV"),
53     NEXT("NEXT"),
54     DND_ON("DNDON"),
55     DND_OFF("DNDOFF"),
56     PARTY_ON("PARTY1"),
57     PARTY_OFF("PARTY0");
58
59     private final String value;
60
61     NuvoCommand(String value) {
62         this.value = value;
63     }
64
65     /**
66      * Get the command name
67      *
68      * @return the command name
69      */
70     public String getValue() {
71         return value;
72     }
73 }