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;
16 * The {@link ChargingSettings} Data Transfer Object
18 * @author Bernd Weymann - Initial contribution
19 * @author Martin Grassl - refactored to Java Bean
21 public class ChargingSettings {
22 private int acCurrentLimit = -1; // 32,
23 private String hospitality = ""; // HOSP_INACTIVE,
24 private String idcc = ""; // AUTOMATIC_INTELLIGENT,
25 private boolean isAcCurrentLimitActive = false; // false,
26 private int targetSoc = -1; // 80
28 public int getAcCurrentLimit() {
29 return acCurrentLimit;
32 public void setAcCurrentLimit(int acCurrentLimit) {
33 this.acCurrentLimit = acCurrentLimit;
36 public String getHospitality() {
40 public void setHospitality(String hospitality) {
41 this.hospitality = hospitality;
44 public String getIdcc() {
48 public void setIdcc(String idcc) {
52 public boolean isAcCurrentLimitActive() {
53 return isAcCurrentLimitActive;
56 public void setAcCurrentLimitActive(boolean isAcCurrentLimitActive) {
57 this.isAcCurrentLimitActive = isAcCurrentLimitActive;
60 public int getTargetSoc() {
64 public void setTargetSoc(int targetSoc) {
65 this.targetSoc = targetSoc;
69 public String toString() {
70 return "ChargingSettings [acCurrentLimit=" + acCurrentLimit + ", hospitality=" + hospitality + ", idcc=" + idcc
71 + ", isAcCurrentLimitActive=" + isAcCurrentLimitActive + ", targetSoc=" + targetSoc + "]";