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.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("suggested_start_time")
58 String suggestedStartTime = "";
60 JsonObject timezone = new JsonObject();
62 @SerializedName("water_sense_mode")
63 String waterSenseMode = "";
65 public String getName() {
69 public String getType() {
73 public boolean isConnected() {
77 public String getHwVersion() {
81 public String getFwVersion() {
85 public String getMacAddress() {
89 public int getNumStations() {
93 public List<OrbitBhyveZone> getZones() {
97 public String getId() {
101 public OrbitBhyveDeviceStatus getStatus() {
105 public String getWaterSenseMode() {
106 return waterSenseMode;
109 public void setWaterSenseMode(String waterSenseMode) {
110 this.waterSenseMode = waterSenseMode;