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.mybmw.internal.dto.vehicle;
17 * derived from the API responses
19 * @author Martin Grassl - initial contribution
21 public class CombustionFuelLevel {
22 private int remainingFuelPercent = -1; // 65,
23 private int remainingFuelLiters = -1; // 34,
24 private int range = -1; // 435
26 public int getRemainingFuelPercent() {
27 return remainingFuelPercent;
30 public void setRemainingFuelPercent(int remainingFuelPercent) {
31 this.remainingFuelPercent = remainingFuelPercent;
34 public int getRemainingFuelLiters() {
35 return remainingFuelLiters;
38 public void setRemainingFuelLiters(int remainingFuelLiters) {
39 this.remainingFuelLiters = remainingFuelLiters;
42 public int getRange() {
46 public void setRange(int range) {
51 public String toString() {
52 return "CombustionFuelLevel [remainingFuelPercent=" + remainingFuelPercent + ", remainingFuelLiters="
53 + remainingFuelLiters + ", range=" + range + "]";