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.vesync.internal.dto.responses.v1;
15 import org.openhab.binding.vesync.internal.dto.responses.VeSyncResponse;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link VeSyncV1AirPurifierDeviceDetailsResponse} is a Java class used as a DTO to hold the Vesync's V1 API's
22 * data, in regards to an Air Purifier device.
24 * @author David Goodyear - Initial contribution
26 public class VeSyncV1AirPurifierDeviceDetailsResponse extends VeSyncResponse {
28 @SerializedName("screenStatus")
29 public String screenStatus;
31 public String getScreenStatus() {
35 @SerializedName("airQuality")
36 public int airQuality;
38 public int getAirQuality() {
42 @SerializedName("level")
45 public int getLevel() {
49 @SerializedName("mode")
52 public String getMode() {
56 @SerializedName("deviceName")
57 public String deviceName;
59 public String getDeviceName() {
63 @SerializedName("currentFirmVersion")
64 public String currentFirmVersion;
66 public String getCurrentFirmVersion() {
67 return currentFirmVersion;
70 @SerializedName("childLock")
71 public String childLock;
73 public String getChildLock() {
77 @SerializedName("deviceStatus")
78 public String deviceStatus;
80 public String getDeviceStatus() {
84 @SerializedName("deviceImg")
85 public String deviceImgUrl;
87 public String getDeviceImgUrl() {
91 @SerializedName("connectionStatus")
92 public String connectionStatus;
94 public String getConnectionStatus() {
95 return connectionStatus;
98 public boolean isDeviceOnline() {
99 return "online".equals(connectionStatus);