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.juicenet.internal.api.dto;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import com.google.gson.annotations.SerializedName;
20 * {@link JuiceNetApiDeviceStatus } implements DTO for Device Status
22 * @author Jeff James - Initial contribution
25 public class JuiceNetApiDeviceStatus {
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")
49 public int temperature;
50 public String message = "";