]> git.basschouten.com Git - openhab-addons.git/blob
7c05c510decc5718b5c9d353e8c22aae930c3ee5
[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 import java.util.ArrayList;
16 import java.util.HashMap;
17 import java.util.List;
18 import java.util.Map;
19
20 /**
21  * A Status message is received when a device in pilight changes state.
22  *
23  * @author Jeroen Idserda - Initial contribution
24  * @author Stefan Röllin - Port to openHAB 2 pilight binding
25  * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
26  */
27 public class Status {
28
29     private String origin;
30
31     private Integer type;
32
33     private String uuid;
34
35     private List<String> devices = new ArrayList<>();
36
37     private Map<String, String> values = new HashMap<>();
38
39     public Status() {
40     }
41
42     public String getOrigin() {
43         return origin;
44     }
45
46     public void setOrigin(String origin) {
47         this.origin = origin;
48     }
49
50     public Integer getType() {
51         return type;
52     }
53
54     public void setType(Integer type) {
55         this.type = type;
56     }
57
58     public String getUuid() {
59         return uuid;
60     }
61
62     public void setUuid(String uuid) {
63         this.uuid = uuid;
64     }
65
66     public List<String> getDevices() {
67         return devices;
68     }
69
70     public void setDevices(List<String> devices) {
71         this.devices = devices;
72     }
73
74     public Map<String, String> getValues() {
75         return values;
76     }
77
78     public void setValues(Map<String, String> values) {
79         this.values = values;
80     }
81 }