2 * Copyright (c) 2010-2024 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.evcc.internal.api.dto;
15 import com.google.gson.annotations.SerializedName;
18 * This class represents a vehicle object of the status response (/api/state).
19 * This DTO was written for evcc version 0.123.1
21 * @author Luca Arnecke - Initial contribution
23 public class Vehicle {
24 // Data types from https://github.com/evcc-io/evcc/blob/master/api/api.go
25 // and from https://docs.evcc.io/docs/reference/configuration/messaging/#msg
27 @SerializedName("title")
30 @SerializedName("minSoc")
33 @SerializedName("limitSoc")
34 private float limitSoC;
36 @SerializedName("plans")
40 * @return vehicle name
42 public String getTitle() {
47 * @return minimum state of charge
49 public float getMinSoC() {
54 * @return limit state of charge
56 public float getLimitSoC() {
61 * @return current plan for vehicle
63 public Plan getPlan() {