]> git.basschouten.com Git - openhab-addons.git/blob
89994b5c0e6787e6daab113f97d9cf8733a1779e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.bosesoundtouch.internal;
14
15 /**
16  * The {@link RemoteKeyType} class is holding the Keys on a remote. For simulating key presses
17  *
18  * @author Christian Niessner - Initial contribution
19  */
20 public enum RemoteKeyType {
21     PLAY,
22     PAUSE,
23     STOP,
24     PREV_TRACK,
25     NEXT_TRACK,
26     THUMBS_UP,
27     THUMBS_DOWN,
28     BOOKMARK,
29     POWER,
30     MUTE,
31     VOLUME_UP,
32     VOLUME_DOWN,
33     PRESET_1,
34     PRESET_2,
35     PRESET_3,
36     PRESET_4,
37     PRESET_5,
38     PRESET_6,
39     AUX_INPUT,
40     SHUFFLE_OFF,
41     SHUFFLE_ON,
42     REPEAT_OFF,
43     REPEAT_ONE,
44     REPEAT_ALL,
45     PLAY_PAUSE,
46     ADD_FAVORITE,
47     REMOVE_FAVORITE,
48     INVALID_KEY;
49
50     private String name;
51
52     private RemoteKeyType() {
53         this.name = name();
54     }
55
56     @Override
57     public String toString() {
58         return name;
59     }
60 }