]> git.basschouten.com Git - openhab-addons.git/blob
1e8f397aae89900d6766f52bc18f5f473004a29c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.gree.internal;
14
15 import java.math.BigDecimal;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * The {@link GreeConfiguration} class contains fields mapping thing configuration parameters.
21  *
22  * @author John Cunha - Initial contribution
23  * @author Markus Michels - Refactoring, adapted to OH 2.5x
24  */
25 @NonNullByDefault
26 public class GreeConfiguration {
27     public String ipAddress = "";
28     public String broadcastAddress = "";
29     public int refresh = 60;
30     /**
31      * The currentTemperatureOffset is configureable in case the user wants to offset this temperature for calibration
32      * of the temperature sensor.
33      */
34     public BigDecimal currentTemperatureOffset = new BigDecimal(0.0);
35
36     @Override
37     public String toString() {
38         return "Config: ipAddress=" + ipAddress + ", broadcastAddress=" + broadcastAddress + ", refresh=" + refresh
39                 + ", currentTemperatureOffset=" + currentTemperatureOffset;
40     }
41 }