]> git.basschouten.com Git - openhab-addons.git/blob
b947e6d91b22f33b1cac7c020683c6dd55636bb6
[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.draytonwiser.internal.model;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * @author Andrew Schofield - Initial contribution
19  */
20 public class SmartValveDTO {
21
22     @SerializedName("id")
23     private Integer id;
24     private int setPoint;
25     private int measuredTemperature;
26     private Integer percentageDemand;
27     private String windowState;
28     private Integer externalRoomStatTemperature;
29     private String mountingOrientation;
30
31     public Integer getId() {
32         return id;
33     }
34
35     public int getSetPoint() {
36         return Math.max(0, setPoint);
37     }
38
39     public void setSetPoint(final Integer setPoint) {
40         this.setPoint = setPoint;
41     }
42
43     public int getMeasuredTemperature() {
44         return measuredTemperature;
45     }
46
47     public Integer getPercentageDemand() {
48         return percentageDemand;
49     }
50
51     public String getWindowState() {
52         return windowState;
53     }
54
55     public Integer getExternalRoomStatTemperature() {
56         return externalRoomStatTemperature;
57     }
58
59     public String getMountingOrientation() {
60         return mountingOrientation;
61     }
62 }