]> git.basschouten.com Git - openhab-addons.git/blob
21eb5864389d96e5ab6f9ff5fbd6547e4cd767b8
[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.somfytahoma.internal.model;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19
20 /**
21  * The {@link SomfyTahomaDevice} holds information about a device bound
22  * to TahomaLink account.
23  *
24  * @author Ondrej Pecta - Initial contribution
25  * @author Laurent Garnier - Add attributes data
26  */
27 @NonNullByDefault
28 public class SomfyTahomaDevice {
29
30     private String uiClass = "";
31     private String widget = "";
32     private String deviceURL = "";
33     private String label = "";
34     private String oid = "";
35     private SomfyTahomaDeviceDefinition definition = new SomfyTahomaDeviceDefinition();
36     private List<SomfyTahomaState> states = new ArrayList<>();
37     private List<SomfyTahomaState> attributes = new ArrayList<>();
38     private String placeOID = "";
39
40     public String getLabel() {
41         return label;
42     }
43
44     public String getDeviceURL() {
45         return deviceURL;
46     }
47
48     public String getOid() {
49         return oid;
50     }
51
52     public String getUiClass() {
53         return uiClass;
54     }
55
56     public String getWidget() {
57         return widget;
58     }
59
60     public void setWidget(String widget) {
61         this.widget = widget;
62     }
63
64     public SomfyTahomaDeviceDefinition getDefinition() {
65         return definition;
66     }
67
68     public List<SomfyTahomaState> getStates() {
69         return states;
70     }
71
72     public List<SomfyTahomaState> getAttributes() {
73         return attributes;
74     }
75
76     public String getPlaceOID() {
77         return placeOID;
78     }
79
80     public void setPlaceOID(String placeOID) {
81         this.placeOID = placeOID;
82     }
83 }