]> git.basschouten.com Git - openhab-addons.git/blob
c59c4826aec1f9b29bdb39126daf5f66b7b75ab1
[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.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 deviceURL = "";
31     private String label = "";
32     private String oid = "";
33     private SomfyTahomaDeviceDefinition definition = new SomfyTahomaDeviceDefinition();
34     private List<SomfyTahomaState> states = new ArrayList<>();
35     private List<SomfyTahomaState> attributes = new ArrayList<>();
36     private String placeOID = "";
37
38     public String getLabel() {
39         return label;
40     }
41
42     public String getDeviceURL() {
43         return deviceURL;
44     }
45
46     public String getOid() {
47         return oid;
48     }
49
50     public SomfyTahomaDeviceDefinition getDefinition() {
51         return definition;
52     }
53
54     public List<SomfyTahomaState> getStates() {
55         return states;
56     }
57
58     public List<SomfyTahomaState> getAttributes() {
59         return attributes;
60     }
61
62     public String getPlaceOID() {
63         return placeOID;
64     }
65
66     public void setPlaceOID(String placeOID) {
67         this.placeOID = placeOID;
68     }
69 }