]> git.basschouten.com Git - openhab-addons.git/blob
504b648fce770bd8c16c16329381f1607acdd18f
[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  * {@link http://www.pilight.org/development/api/#sender}
20  *
21  * @author Jeroen Idserda - Initial contribution
22  * @author Stefan Röllin - Port to openHAB 2 pilight binding
23  * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
24  */
25 public class Code {
26
27     public static final String STATE_ON = "on";
28
29     public static final String STATE_OFF = "off";
30
31     private String device;
32
33     private String state;
34
35     private Values values;
36
37     public String getDevice() {
38         return device;
39     }
40
41     public void setDevice(String device) {
42         this.device = device;
43     }
44
45     public String getState() {
46         return state;
47     }
48
49     public void setState(String state) {
50         this.state = state;
51     }
52
53     public Values getValues() {
54         return values;
55     }
56
57     public void setValues(Values values) {
58         this.values = values;
59     }
60 }