]> git.basschouten.com Git - openhab-addons.git/blob
604ac7539eccc3cd258b4855bce4af1426aec1ca
[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.mybmw.internal.dto.vehicle;
14
15 /**
16  * 
17  * derived from the API responses
18  * 
19  * @author Martin Grassl - initial contribution
20  */
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.
27
28     public String getDateTime() {
29         return dateTime;
30     }
31
32     public void setDateTime(String dateTime) {
33         this.dateTime = dateTime;
34     }
35
36     public int getMileage() {
37         return mileage;
38     }
39
40     public void setMileage(int mileage) {
41         this.mileage = mileage;
42     }
43
44     public String getType() {
45         return type;
46     }
47
48     public void setType(String type) {
49         this.type = type;
50     }
51
52     public String getStatus() {
53         return status;
54     }
55
56     public void setStatus(String status) {
57         this.status = status;
58     }
59
60     public String getDescription() {
61         return description;
62     }
63
64     public void setDescription(String description) {
65         this.description = description;
66     }
67
68     @Override
69     public String toString() {
70         return "RequiredService [dateTime=" + dateTime + ", mileage=" + mileage + ", type=" + type + ", status="
71                 + status + ", description=" + description + "]";
72     }
73 }