2 * Copyright (c) 2010-2022 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 SmartValveDTO {
25 private int measuredTemperature;
26 private Integer percentageDemand;
27 private String windowState;
28 private Integer externalRoomStatTemperature;
29 private String mountingOrientation;
31 public Integer getId() {
35 public int getSetPoint() {
36 return Math.max(0, setPoint);
39 public void setSetPoint(final Integer setPoint) {
40 this.setPoint = setPoint;
43 public int getMeasuredTemperature() {
44 return measuredTemperature;
47 public Integer getPercentageDemand() {
48 return percentageDemand;
51 public String getWindowState() {
55 public Integer getExternalRoomStatTemperature() {
56 return externalRoomStatTemperature;
59 public String getMountingOrientation() {
60 return mountingOrientation;