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.charge;
15 import java.util.List;
18 * The {@link ChargingSessions} Data Transfer Object
20 * @author Bernd Weymann - Initial contribution
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;
31 public String getTotal() {
36 * @return the numberOfSessions
38 public String getNumberOfSessions() {
39 return numberOfSessions;
43 * @return the chargingListState
45 public String getChargingListState() {
46 return chargingListState;
50 * @return the sessions
52 public List<ChargingSession> getSessions() {
58 * @see java.lang.Object#toString()
62 public String toString() {
63 return "ChargingSessions [total=" + total + ", numberOfSessions=" + numberOfSessions + ", chargingListState="
64 + chargingListState + ", sessions=" + sessions + "]";