2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.somfytahoma.internal.model;
15 import java.util.ArrayList;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
21 * The {@link SomfyTahomaDevice} holds information about a device bound
22 * to TahomaLink account.
24 * @author Ondrej Pecta - Initial contribution
25 * @author Laurent Garnier - Add attributes data
28 public class SomfyTahomaDevice {
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 = "";
38 public String getLabel() {
42 public String getDeviceURL() {
46 public String getOid() {
50 public SomfyTahomaDeviceDefinition getDefinition() {
54 public List<SomfyTahomaState> getStates() {
58 public List<SomfyTahomaState> getAttributes() {
62 public String getPlaceOID() {
66 public void setPlaceOID(String placeOID) {
67 this.placeOID = placeOID;