]> git.basschouten.com Git - openhab-addons.git/blob
aeb4fe882e29c7103baa1fa8fd54eb8ce59a104f
[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 RoomStatDTO {
21
22     @SerializedName("id")
23     private Integer id;
24     private int setPoint;
25     private Integer measuredTemperature;
26     private Integer measuredHumidity;
27
28     public Integer getId() {
29         return id;
30     }
31
32     public int getSetPoint() {
33         return Math.max(0, setPoint);
34     }
35
36     public void setSetPoint(final Integer setPoint) {
37         this.setPoint = setPoint;
38     }
39
40     public Integer getMeasuredTemperature() {
41         return measuredTemperature;
42     }
43
44     public Integer getMeasuredHumidity() {
45         return measuredHumidity;
46     }
47 }