]> git.basschouten.com Git - openhab-addons.git/blob
8bfe958693d5541ec0ca1f59f522c015e13a7ab8
[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.lutron.internal.protocol.leap;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * LEAP CommandType enum
21  *
22  * @author Bob Adair - Initial contribution
23  */
24 @NonNullByDefault
25 public enum CommandType {
26     @SerializedName("GoToDimmedLevel")
27     GOTODIMMEDLEVEL("GoToDimmedLevel"),
28     @SerializedName("GoToFanSpeed")
29     GOTOFANSPEED("GoToFanSpeed"),
30     @SerializedName("GoToLevel")
31     GOTOLEVEL("GoToLevel"),
32     @SerializedName("PressAndHold")
33     PRESSANDHOLD("PressAndHold"),
34     @SerializedName("PressAndRelease")
35     PRESSANDRELEASE("PressAndRelease"),
36     @SerializedName("Release")
37     RELEASE("Release"),
38     @SerializedName("ShadeLimitLower")
39     SHADELIMITLOWER("ShadeLimitLower"),
40     @SerializedName("ShadeLimitRaise")
41     SHADELIMITRAISE("ShadeLimitRaise"),
42     @SerializedName("Raise")
43     RAISE("Raise"),
44     @SerializedName("Lower")
45     LOWER("Lower"),
46     @SerializedName("Stop")
47     STOP("Stop");
48
49     private final transient String string;
50
51     CommandType(String string) {
52         this.string = string;
53     }
54
55     @Override
56     public String toString() {
57         return string;
58     }
59 }