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.bsblan.internal.api.dto;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link BsbLanApiParameterSetRequestDTO} reflects the request sent
19 * when setting a parameter.
21 * @author Peter Schraffl - Initial contribution
23 public class BsbLanApiParameterSetRequestDTO implements BsbLanApiContentDTO {
31 private final String value;
37 public String getValue() {
41 public static Type getTypeWithFallback(String value) {
43 for (Type t : Type.values()) {
44 if (t.value.toLowerCase().equals(value.toLowerCase())) {
54 // Although specifying the parameter as int (which would be nicer) also seems to work,
55 // we use a String here as this is the way it is noted in the documentation.
56 @SerializedName("Parameter")
57 public String parameter;
59 @SerializedName("Value")
62 @SerializedName("Type")