]> git.basschouten.com Git - openhab-addons.git/blob
d25e2621c07a7edd5a417615919b4833db380b8a
[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 CommuniqueType enum
21  *
22  * @author Bob Adair - Initial contribution
23  */
24 @NonNullByDefault
25 public enum CommuniqueType {
26     // Requests
27     @SerializedName("CreateRequest")
28     CREATEREQUEST("CreateRequest"),
29     @SerializedName("ReadRequest")
30     READREQUEST("ReadRequest"),
31     @SerializedName("UpdateRequest")
32     UPDATEREQUEST("UpdateRequest"),
33     @SerializedName("DeleteRequest")
34     DELETEREQUEST("DeleteRequest"), // ?
35     @SerializedName("SubscribeRequest")
36     SUBSCRIBEREQUEST("SubscribeRequest"),
37     @SerializedName("UnubscribeRequest")
38     UNSUBSCRIBEREQUEST("UnubscribeRequest"),
39     @SerializedName("Execute")
40     EXECUTEREQUEST("Execute"),
41
42     // Responses
43     @SerializedName("CreateResponse")
44     CREATERESPONSE("CreateResponse"),
45     @SerializedName("ReadResponse")
46     READRESPONSE("ReadResponse"),
47     @SerializedName("UpdateResponse")
48     UPDATERESPONSE("UpdateResponse"),
49     @SerializedName("DeleteResponse")
50     DELETERESPONSE("DeleteResponse"), // ?
51     @SerializedName("SubscribeResponse")
52     SUBSCRIBERESPONSE("SubscribeResponse"),
53     @SerializedName("UnsubscribeResponse")
54     UNSUBSCRIBERESPONSE("UnsubscribeResponse"),
55     @SerializedName("ExecuteResponse")
56     EXECUTERESPONSE("ExecuteResponse"), // ?
57     @SerializedName("ExceptionResponse")
58     EXCEPTIONRESPONSE("ExceptionResponse");
59
60     private final transient String string;
61
62     CommuniqueType(String string) {
63         this.string = string;
64     }
65
66     @Override
67     public String toString() {
68         return string;
69     }
70 }