]> git.basschouten.com Git - openhab-addons.git/blob
6af4a704d0a9f8a7be15332c7451773e520bea4e
[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.pilight.internal.dto;
14
15 /**
16  * This message is sent when we want to change the state of a device or request the
17  * current configuration in pilight.
18  *
19  * @author Jeroen Idserda - Initial contribution
20  * @author Stefan Röllin - Port to openHAB 2 pilight binding
21  * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
22  */
23 public class Action {
24
25     public static final String ACTION_SEND = "send";
26
27     public static final String ACTION_CONTROL = "control";
28
29     public static final String ACTION_REQUEST_CONFIG = "request config";
30
31     public static final String ACTION_REQUEST_VALUES = "request values";
32
33     private String action;
34
35     private Code code;
36
37     private Options options;
38
39     public Action(String action) {
40         this.action = action;
41     }
42
43     public String getAction() {
44         return action;
45     }
46
47     public void setAction(String action) {
48         this.action = action;
49     }
50
51     public Code getCode() {
52         return code;
53     }
54
55     public void setCode(Code code) {
56         this.code = code;
57     }
58
59     public Options getOptions() {
60         return options;
61     }
62
63     public void setOptions(Options options) {
64         this.options = options;
65     }
66 }