]> git.basschouten.com Git - openhab-addons.git/blob
7e9128375039e41c63b022c8b756314b80025bf5
[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.miio.internal.basic;
14
15 import java.math.BigDecimal;
16 import java.util.List;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20
21 import com.google.gson.annotations.Expose;
22 import com.google.gson.annotations.SerializedName;
23
24 /**
25  * Mapping properties from json for state descriptions
26  *
27  * @author Marcel Verpaalen - Initial contribution
28  */
29 @NonNullByDefault
30 public class StateDescriptionDTO {
31
32     @SerializedName("minimum")
33     @Expose
34     @Nullable
35     private BigDecimal minimum;
36     @SerializedName("maximum")
37     @Expose
38     @Nullable
39     private BigDecimal maximum;
40     @SerializedName("step")
41     @Expose
42     @Nullable
43     private BigDecimal step;
44     @SerializedName("pattern")
45     @Expose
46     @Nullable
47     private String pattern;
48     @SerializedName("readOnly")
49     @Expose
50     @Nullable
51     private Boolean readOnly;
52     @SerializedName("options")
53     @Expose
54     @Nullable
55     public List<OptionsValueListDTO> options = null;
56
57     @Nullable
58     public BigDecimal getMinimum() {
59         return minimum;
60     }
61
62     public void setMinimum(@Nullable BigDecimal minimum) {
63         this.minimum = minimum;
64     }
65
66     @Nullable
67     public BigDecimal getMaximum() {
68         return maximum;
69     }
70
71     public void setMaximum(@Nullable BigDecimal maximum) {
72         this.maximum = maximum;
73     }
74
75     @Nullable
76     public BigDecimal getStep() {
77         return step;
78     }
79
80     public void setStep(@Nullable BigDecimal step) {
81         this.step = step;
82     }
83
84     @Nullable
85     public String getPattern() {
86         return pattern;
87     }
88
89     public void setPattern(@Nullable String pattern) {
90         this.pattern = pattern;
91     }
92
93     @Nullable
94     public Boolean getReadOnly() {
95         return readOnly;
96     }
97
98     public void setReadOnly(@Nullable Boolean readOnly) {
99         this.readOnly = readOnly;
100     }
101
102     @Nullable
103     public List<OptionsValueListDTO> getOptions() {
104         return options;
105     }
106
107     public void setOptions(@Nullable List<OptionsValueListDTO> options) {
108         this.options = options;
109     }
110 }