]> git.basschouten.com Git - openhab-addons.git/blob
84fd04bb6fe1cb585e543942b8b73e4425d2b261
[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.plugwiseha.internal.api.model.dto;
14
15 import com.thoughtworks.xstream.annotations.XStreamAlias;
16
17 /**
18  * @author B. van Wetten - Initial contribution
19  * @author Leo Siepel - finish initial contribution
20  */
21 @XStreamAlias("thermostat_functionality")
22 public class ActuatorFunctionalityThermostat extends ActuatorFunctionality {
23
24     @SuppressWarnings("unused")
25     private Double setpoint;
26
27     @SuppressWarnings("unused")
28     @XStreamAlias("preheating_allowed")
29     private Boolean preheatingAllowed;
30
31     @SuppressWarnings("unused")
32     @XStreamAlias("cooling_allowed")
33     private Boolean coolingAllowed;
34
35     @SuppressWarnings("unused")
36     @XStreamAlias("regulation_control")
37     private String regulationControl;
38
39     public ActuatorFunctionalityThermostat(Double temperature) {
40         this.setpoint = temperature;
41     }
42
43     public ActuatorFunctionalityThermostat(Boolean preheatingAllowed, Boolean coolingAllowed,
44             String regulationControl) {
45         this.preheatingAllowed = preheatingAllowed;
46         this.coolingAllowed = coolingAllowed;
47         this.regulationControl = regulationControl;
48     }
49 }