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