2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.proteusecometer.internal.ecometers;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The reply of Proteus EcoMeter S
20 * @author Matthias Herrmann - Initial contribution
24 public class ProteusEcoMeterSReply {
25 public final double tempInFahrenheit;
26 public final int sensorLevelInCm;
27 public final int usableLevelInLiter;
28 public final int totalCapacityInLiter;
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;
39 public String toString() {
40 return "ProteusEcoMeterSReply [sensorLevelInCm=" + sensorLevelInCm + ", tempInFahrenheit=" + tempInFahrenheit
41 + ", totalCapacityInLiter=" + totalCapacityInLiter + ", usableLevelInLiter=" + usableLevelInLiter + "]";