]> git.basschouten.com Git - openhab-addons.git/blob
b9026dbc5ca08e15c9da2d5eb944996ff354d49f
[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.proteusecometer.internal.ecometers;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The reply of Proteus EcoMeter S
19  *
20  * @author Matthias Herrmann - Initial contribution
21  *
22  */
23 @NonNullByDefault
24 public class ProteusEcoMeterSReply {
25     public final double tempInFahrenheit;
26     public final int sensorLevelInCm;
27     public final int usableLevelInLiter;
28     public final int totalCapacityInLiter;
29
30     public ProteusEcoMeterSReply(final double tempInFahrenheit, final int sensorLevelInCm, final int usableLevelInLiter,
31             final int totalCapacityInLiter) {
32         this.tempInFahrenheit = tempInFahrenheit;
33         this.sensorLevelInCm = sensorLevelInCm;
34         this.usableLevelInLiter = usableLevelInLiter;
35         this.totalCapacityInLiter = totalCapacityInLiter;
36     }
37
38     @Override
39     public String toString() {
40         return "ProteusEcoMeterSReply [sensorLevelInCm=" + sensorLevelInCm + ", tempInFahrenheit=" + tempInFahrenheit
41                 + ", totalCapacityInLiter=" + totalCapacityInLiter + ", usableLevelInLiter=" + usableLevelInLiter + "]";
42     }
43 }