]> git.basschouten.com Git - openhab-addons.git/blob
288f9d71a33c343ba01563bc1f04fe646bdf64fb
[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.orbitbhyve.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 import com.google.gson.JsonArray;
19 import com.google.gson.annotations.SerializedName;
20
21 /**
22  * The {@link OrbitBhyveZone} holds information about a B-Hyve
23  * zone.
24  *
25  * @author Ondrej Pecta - Initial contribution
26  */
27 @NonNullByDefault
28 public class OrbitBhyveZone {
29     String name = "";
30     int station = 0;
31
32     @SerializedName("catch_cup_run_time")
33     int catchCupRunTime = 0;
34
35     @SerializedName("catch_cup_volumes")
36     JsonArray catchCupVolumes = new JsonArray();
37
38     @SerializedName("num_sprinklers")
39     int numSprinklers = 0;
40
41     @SerializedName("landscape_type")
42     @Nullable
43     String landscapeType;
44
45     @SerializedName("soil_type")
46     @Nullable
47     String soilType;
48
49     @SerializedName("sprinkler_type")
50     @Nullable
51     String sprinklerType;
52
53     @SerializedName("sun_shade")
54     @Nullable
55     String sunShade;
56
57     @SerializedName("slope_grade")
58     int slopeGrade = 0;
59
60     @SerializedName("image_url")
61     String imageUrl = "";
62
63     @SerializedName("smart_watering_enabled")
64     boolean smartWateringEnabled = false;
65
66     public String getName() {
67         return name;
68     }
69
70     public int getStation() {
71         return station;
72     }
73
74     public boolean isSmartWateringEnabled() {
75         return smartWateringEnabled;
76     }
77
78     public void setSmartWateringEnabled(boolean smartWateringEnabled) {
79         this.smartWateringEnabled = smartWateringEnabled;
80     }
81 }