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.draytonwiser.internal.model;
15 import com.google.gson.annotations.SerializedName;
18 * @author Andrew Schofield - Initial contribution
20 public class DeviceDTO {
24 private String productType;
25 private String productIdentifier;
26 private String activeFirmwareVersion;
27 private String manufacturer;
28 private String modelIdentifier;
29 private String hardwareVersion;
30 private String serialNumber;
31 private String productRange;
32 private String productModel;
33 private String productFamily;
34 private String displayedSignalStrength;
35 private Integer batteryVoltage;
36 private String batteryLevel;
39 private ReceptionDTO receptionOfDevice;
40 private ReceptionDTO receptionOfController;
41 private Boolean deviceLockEnabled;
43 public Integer getId() {
47 public String getProductType() {
51 public String getProductIdentifier() {
52 return productIdentifier;
55 public String getActiveFirmwareVersion() {
56 return activeFirmwareVersion;
59 public String getManufacturer() {
63 public String getModelIdentifier() {
64 return modelIdentifier;
67 public String getHardwareVersion() {
68 return hardwareVersion;
71 public String getSerialNumber() {
75 public String getProductRange() {
79 public String getProductModel() {
83 public String getProductFamily() {
87 public String getDisplayedSignalStrength() {
88 return displayedSignalStrength;
91 public Integer getBatteryVoltage() {
92 return batteryVoltage;
95 public String getBatteryLevel() {
99 public Integer getRssi() {
104 // JSON response changed with firmware update to include RSSI and LQI on a separate object
105 return receptionOfDevice == null ? null : receptionOfDevice.getRSSI();
108 public Integer getLqi() {
113 return receptionOfDevice == null ? null : receptionOfDevice.getLQI();
116 public ReceptionDTO getReceptionOfController() {
117 return receptionOfController;
120 public Boolean getDeviceLockEnabled() {
121 return deviceLockEnabled;