]> git.basschouten.com Git - openhab-addons.git/blob
96019676dc077cb872443a68c117abc07b75625d
[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.charge;
14
15 /**
16  * The {@link ChargingSession} Data Transfer Object
17  *
18  * @author Bernd Weymann - Initial contribution
19  */
20 public class ChargingSession {
21     private String id;// ": "2021-12-26T16:57:20Z_128fa4af",
22     private String title;// ": "Gestern 17:57",
23     private String subtitle;// ": "Uferstraße 4B • 7h 45min • -- EUR",
24     private String energyCharged;// ": "~ 31 kWh",
25     private String sessionStatus;// ": "FINISHED",
26     private String issues;// ": "2 Probleme",
27     private String isPublic;// ": false
28
29     /**
30      * @return the id
31      */
32     public String getId() {
33         return id;
34     }
35
36     /**
37      * @return the title
38      */
39     public String getTitle() {
40         return title;
41     }
42
43     /**
44      * @param title the title to set
45      */
46     public void setTitle(String title) {
47         this.title = title;
48     }
49
50     /**
51      * @return the subtitle
52      */
53     public String getSubtitle() {
54         return subtitle;
55     }
56
57     /**
58      * @return the energyCharged
59      */
60     public String getEnergyCharged() {
61         return energyCharged;
62     }
63
64     /**
65      * @return the sessionStatus
66      */
67     public String getSessionStatus() {
68         return sessionStatus;
69     }
70
71     /**
72      * @return the issues
73      */
74     public String getIssues() {
75         return issues;
76     }
77
78     /**
79      * @return the isPublic
80      */
81     public String getIsPublic() {
82         return isPublic;
83     }
84     /*
85      * (non-Javadoc)
86      * 
87      * @see java.lang.Object#toString()
88      */
89
90     @Override
91     public String toString() {
92         return "ChargingSession [id=" + id + ", title=" + title + ", subtitle=" + subtitle + ", energyCharged="
93                 + energyCharged + ", sessionStatus=" + sessionStatus + ", issues=" + issues + ", isPublic=" + isPublic
94                 + "]";
95     }
96 }