]> git.basschouten.com Git - openhab-addons.git/blob
25262c06a11dc9df1c62ab81a8ab445802460ce9
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.bmwconnecteddrive.internal.dto.status;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 import org.openhab.binding.bmwconnecteddrive.internal.utils.Constants;
19
20 import com.google.gson.annotations.SerializedName;
21
22 /**
23  * The {@link VehicleStatus} Data Transfer Object
24  *
25  * @author Bernd Weymann - Initial contribution
26  */
27 public class VehicleStatus {
28     public int mileage = Constants.INT_UNDEF;// ": 17273,
29     public double remainingFuel = Constants.INT_UNDEF;// ": 4,
30     public double remainingRangeElectric = Constants.INT_UNDEF;// ": 148,
31     public double remainingRangeElectricMls;// ": 91,
32     public double remainingRangeFuel = Constants.INT_UNDEF;// ": 70,"
33     public double remainingRangeFuelMls;// ":43,"
34     public double maxRangeElectric = Constants.INT_UNDEF;// ":216,"
35     public double maxRangeElectricMls;// ":134,"
36     public double maxFuel;// ":8.5,
37     public double chargingLevelHv;// ":71,
38     public String vin;// : "ANONYMOUS",
39     public String updateReason;// ": "VEHICLE_SHUTDOWN_SECURED",
40     public String updateTime;// ": "2020-08-24 T15:55:32+0000",
41     public String doorDriverFront = Constants.UNDEF;// ": "CLOSED",
42     public String doorDriverRear = Constants.UNDEF;// ": "CLOSED",
43     public String doorPassengerFront = Constants.UNDEF;// ": "CLOSED",
44     public String doorPassengerRear = Constants.UNDEF;// ": "CLOSED",
45     public String windowDriverFront = Constants.UNDEF;// ": "CLOSED",
46     public String windowDriverRear = Constants.UNDEF;// ": "CLOSED",
47     public String windowPassengerFront = Constants.UNDEF;// ": "CLOSED",
48     public String windowPassengerRear = Constants.UNDEF;// ": "CLOSED",
49     public String sunroof = Constants.UNDEF;// ": "CLOSED",
50     public String trunk = Constants.UNDEF;// ": "CLOSED",
51     public String rearWindow = Constants.UNDEF;// ": "INVALID",
52     public String hood = Constants.UNDEF;// ": "CLOSED",
53     public String doorLockState;// ": "SECURED",
54     public String parkingLight;// ": "OFF",
55     public String positionLight;// ": "ON",
56     public String connectionStatus;// ": "DISCONNECTED",
57     public String chargingStatus;// ": "INVALID","
58     public String lastChargingEndReason;// ": "CHARGING_GOAL_REACHED",
59     public String lastChargingEndResult;// ": "SUCCESS","
60     public Double chargingTimeRemaining;// ": "45",
61     public Position position;
62     public String internalDataTimeUTC;// ": "2020-08-24 T15:55:32",
63     public boolean singleImmediateCharging;// ":false,
64     public String chargingConnectionType;// ": "CONDUCTIVE",
65     public String chargingInductivePositioning;// ": "NOT_POSITIONED",
66     public String vehicleCountry;// ": "DE","+"
67     @SerializedName("DCS_CCH_Activation")
68     public String dcsCchActivation;// ": "NA",
69     @SerializedName("DCS_CCH_Ongoing")
70     public boolean dcsCchOngoing;// ":false
71     public List<CCMMessage> checkControlMessages = new ArrayList<CCMMessage>();// ":[],
72     public List<CBSMessage> cbsData = new ArrayList<CBSMessage>();
73 }