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 RequiredService {
22 private String dateTime = ""; // 2024-06-01T00:00:00.000Z,
23 private int mileage = -1; // 29000,
24 private String type = ""; // OIL,
25 private String status = ""; // OK,
26 private String description = ""; // Next service due after the specified distance or date.
28 public String getDateTime() {
32 public void setDateTime(String dateTime) {
33 this.dateTime = dateTime;
36 public int getMileage() {
40 public void setMileage(int mileage) {
41 this.mileage = mileage;
44 public String getType() {
48 public void setType(String type) {
52 public String getStatus() {
56 public void setStatus(String status) {
60 public String getDescription() {
64 public void setDescription(String description) {
65 this.description = description;
69 public String toString() {
70 return "RequiredService [dateTime=" + dateTime + ", mileage=" + mileage + ", type=" + type + ", status="
71 + status + ", description=" + description + "]";