]> git.basschouten.com Git - openhab-addons.git/blob
3c76b7c7e24217bbc1202f923adf992ed3cc68ed
[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.juicenet.internal.api.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * {@link JuiceNetApiDeviceStatus } implements DTO for Device Status
21  *
22  * @author Jeff James - Initial contribution
23  */
24 @NonNullByDefault
25 public class JuiceNetApiDeviceStatus {
26     @SerializedName("ID")
27     public String id = "";
28     @SerializedName("info_timestamp")
29     public Long infoTimestamp = (long) 0;
30     @SerializedName("show_override")
31     public boolean showOverride;
32     public String state = "";
33     public JuiceNetApiDeviceChargingStatus charging = new JuiceNetApiDeviceChargingStatus();
34     public JuiceNetApiDeviceLifetimeStatus lifetime = new JuiceNetApiDeviceLifetimeStatus();
35     @SerializedName("charging_time_left")
36     public int chargingTimeLeft;
37     @SerializedName("plug_unplug_time")
38     public Long plugUnplugTime = (long) 0;
39     @SerializedName("target_time")
40     public Long targetTime = (long) 0;
41     @SerializedName("unit_time")
42     public Long unitTime = (long) 0;
43     @SerializedName("utc_time")
44     public Long utcTime = (long) 0;
45     @SerializedName("default_target_time")
46     public long defaultTargetTime = 0;
47     @SerializedName("car_id")
48     public int carId;
49     public int temperature;
50     public String message = "";
51 }