]> git.basschouten.com Git - openhab-addons.git/blob
90a787523848d065ed1e106631fc01ee94cdef56
[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 import java.util.List;
16
17 /**
18  * The {@link ChargingSessions} Data Transfer Object
19  *
20  * @author Bernd Weymann - Initial contribution
21  */
22 public class ChargingSessions {
23     private String total;// ": "~ 218 kWh",
24     private String numberOfSessions;// ": "17",
25     private String chargingListState;// ": "HAS_SESSIONS",
26     private List<ChargingSession> sessions;
27
28     /**
29      * @return the total
30      */
31     public String getTotal() {
32         return total;
33     }
34
35     /**
36      * @return the numberOfSessions
37      */
38     public String getNumberOfSessions() {
39         return numberOfSessions;
40     }
41
42     /**
43      * @return the chargingListState
44      */
45     public String getChargingListState() {
46         return chargingListState;
47     }
48
49     /**
50      * @return the sessions
51      */
52     public List<ChargingSession> getSessions() {
53         return sessions;
54     }
55     /*
56      * (non-Javadoc)
57      * 
58      * @see java.lang.Object#toString()
59      */
60
61     @Override
62     public String toString() {
63         return "ChargingSessions [total=" + total + ", numberOfSessions=" + numberOfSessions + ", chargingListState="
64                 + chargingListState + ", sessions=" + sessions + "]";
65     }
66 }