2 * Copyright (c) 2010-2022 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.bsblan.internal.api.dto;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link BsbLanApiParameterDTO} is responsible for storing parameter info.
20 * @author Peter Schraffl - Initial contribution
22 public class BsbLanApiParameterDTO {
24 public enum DataType {
26 DT_VALS(0), // plain value
28 DT_ENUM(1), // value (8/16 Bit) followed by space followed by text
30 DT_BITS(2), // bit value followed by bitmask followed by text
32 DT_WDAY(3), // weekday
34 DT_HHMM(4), // hour:minute
36 DT_DTTM(5), // date and time
38 DT_DDMM(6), // day and month
42 DT_DWHM(8); // PPS time (day of week, hour:minute)
44 private final int value;
50 public int getValue() {
55 @SerializedName("name")
58 @SerializedName("value")
61 @SerializedName("unit")
64 @SerializedName("desc")
65 public String description;
67 @SerializedName("dataType")
68 public DataType dataType;