]> git.basschouten.com Git - openhab-addons.git/blob
74eb963c1ec9aa7566937c209afb8090aa4e253d
[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.pilight.internal.dto;
14
15 /**
16  * Part of the {@link Action} message that is sent to pilight.
17  * This contains the desired state for a single device.
18  *
19  * @see <a href="https://manual.pilight.org/development/socket/index.html">
20  *      https://manual.pilight.org/development/socket/index.html</a>
21  *
22  * @author Jeroen Idserda - Initial contribution
23  * @author Stefan Röllin - Port to openHAB 2 pilight binding
24  * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
25  */
26 public class Code {
27
28     public static final String STATE_ON = "on";
29
30     public static final String STATE_OFF = "off";
31
32     private String device;
33
34     private String state;
35
36     private Values values;
37
38     public String getDevice() {
39         return device;
40     }
41
42     public void setDevice(String device) {
43         this.device = device;
44     }
45
46     public String getState() {
47         return state;
48     }
49
50     public void setState(String state) {
51         this.state = state;
52     }
53
54     public Values getValues() {
55         return values;
56     }
57
58     public void setValues(Values values) {
59         this.values = values;
60     }
61 }