]> git.basschouten.com Git - openhab-addons.git/blob
fc23005cf317750729d67ea014c1b9eca674a77f
[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 ChargingSettings} Data Transfer Object
17  *
18  * @author Bernd Weymann - Initial contribution
19  * @author Martin Grassl - refactored to Java Bean
20  */
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
27
28     public int getAcCurrentLimit() {
29         return acCurrentLimit;
30     }
31
32     public void setAcCurrentLimit(int acCurrentLimit) {
33         this.acCurrentLimit = acCurrentLimit;
34     }
35
36     public String getHospitality() {
37         return hospitality;
38     }
39
40     public void setHospitality(String hospitality) {
41         this.hospitality = hospitality;
42     }
43
44     public String getIdcc() {
45         return idcc;
46     }
47
48     public void setIdcc(String idcc) {
49         this.idcc = idcc;
50     }
51
52     public boolean isAcCurrentLimitActive() {
53         return isAcCurrentLimitActive;
54     }
55
56     public void setAcCurrentLimitActive(boolean isAcCurrentLimitActive) {
57         this.isAcCurrentLimitActive = isAcCurrentLimitActive;
58     }
59
60     public int getTargetSoc() {
61         return targetSoc;
62     }
63
64     public void setTargetSoc(int targetSoc) {
65         this.targetSoc = targetSoc;
66     }
67
68     @Override
69     public String toString() {
70         return "ChargingSettings [acCurrentLimit=" + acCurrentLimit + ", hospitality=" + hospitality + ", idcc=" + idcc
71                 + ", isAcCurrentLimitActive=" + isAcCurrentLimitActive + ", targetSoc=" + targetSoc + "]";
72     }
73 }