2 * Copyright (c) 2010-2021 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.orbitbhyve.internal.model;
15 import java.util.ArrayList;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import com.google.gson.JsonObject;
21 import com.google.gson.annotations.SerializedName;
24 * The {@link OrbitBhyveDevice} holds information about a B-Hyve
27 * @author Ondrej Pecta - Initial contribution
30 public class OrbitBhyveDevice {
34 List<OrbitBhyveZone> zones = new ArrayList<>();
35 OrbitBhyveDeviceStatus status = new OrbitBhyveDeviceStatus();
37 @SerializedName("is_connected")
38 boolean isConnected = false;
40 @SerializedName("hardware_version")
41 String hwVersion = "";
43 @SerializedName("firmware_version")
44 String fwVersion = "";
46 @SerializedName("mac_address")
47 String macAddress = "";
49 @SerializedName("num_stations")
52 @SerializedName("last_connected_at")
53 String lastConnectedAt = "";
55 JsonObject location = new JsonObject();
57 @SerializedName("restricted_frequency")
58 JsonObject restrictedFrequency = new JsonObject();
60 @SerializedName("suggested_start_time")
61 String suggestedStartTime = "";
63 JsonObject timezone = new JsonObject();
65 @SerializedName("water_sense_mode")
66 String waterSenseMode = "";
68 @SerializedName("wifi_version")
71 public String getName() {
75 public String getType() {
79 public boolean isConnected() {
83 public String getHwVersion() {
87 public String getFwVersion() {
91 public String getMacAddress() {
95 public int getNumStations() {
99 public List<OrbitBhyveZone> getZones() {
103 public String getId() {
107 public OrbitBhyveDeviceStatus getStatus() {
111 public String getWaterSenseMode() {
112 return waterSenseMode;
115 public void setWaterSenseMode(String waterSenseMode) {
116 this.waterSenseMode = waterSenseMode;