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.tankerkoenig.internal.dto;
15 import org.openhab.binding.tankerkoenig.internal.TankerkoenigBindingConstants;
18 * The {@link TankerkoenigListResult} class is the representing java model for the json result of the tankerkoenig.de
21 * @author Dennis Dollinger - Initial contribution
23 public class TankerkoenigListResult {
26 private Prices prices;
27 private String message;
29 public boolean isOk() {
33 public void setOk(boolean ok) {
37 public Prices getPrices() {
41 public void setPrices(Prices prices) {
45 public static TankerkoenigListResult emptyResult() {
46 TankerkoenigListResult emptyResult = new TankerkoenigListResult();
47 emptyResult.setOk(false);
48 emptyResult.setMessage(TankerkoenigBindingConstants.NO_VALID_RESPONSE);
52 public String getMessage() {
56 public void setMessage(String message) {
57 this.message = message;