]> git.basschouten.com Git - openhab-addons.git/blob
3ceacbca63ee7a027abe7d89c25e4375e55004fb
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.bsblan.internal.api.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link BsbLanApiParameterDTO} is responsible for storing parameter info.
19  *
20  * @author Peter Schraffl - Initial contribution
21  */
22 public class BsbLanApiParameterDTO {
23
24     public enum DataType {
25         @SerializedName("0")
26         DT_VALS(0), // plain value
27         @SerializedName("1")
28         DT_ENUM(1), // value (8/16 Bit) followed by space followed by text
29         @SerializedName("2")
30         DT_BITS(2), // bit value followed by bitmask followed by text
31         @SerializedName("3")
32         DT_WDAY(3), // weekday
33         @SerializedName("4")
34         DT_HHMM(4), // hour:minute
35         @SerializedName("5")
36         DT_DTTM(5), // date and time
37         @SerializedName("6")
38         DT_DDMM(6), // day and month
39         @SerializedName("7")
40         DT_STRN(7), // string
41         @SerializedName("8")
42         DT_DWHM(8); // PPS time (day of week, hour:minute)
43
44         private final int value;
45
46         DataType(int value) {
47             this.value = value;
48         }
49
50         public int getValue() {
51             return value;
52         }
53     }
54
55     @SerializedName("name")
56     public String name;
57
58     @SerializedName("value")
59     public String value;
60
61     @SerializedName("unit")
62     public String unit;
63
64     @SerializedName("desc")
65     public String description;
66
67     @SerializedName("dataType")
68     public DataType dataType;
69 }