]> git.basschouten.com Git - openhab-addons.git/blob
bbc5d9704546f599aa538f0329bb7a51b09628d3
[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.miio.internal.basic;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 import com.google.gson.annotations.Expose;
19 import com.google.gson.annotations.SerializedName;
20
21 /**
22  * Mapping properties from json for channel options
23  *
24  * @author Marcel Verpaalen - Initial contribution
25  */
26 @NonNullByDefault
27 public class OptionsValueListDTO {
28
29     @SerializedName("value")
30     @Expose
31     public @Nullable String value;
32
33     @SerializedName("label")
34     @Expose
35     public @Nullable String label;
36
37     public @Nullable String getValue() {
38         return value;
39     }
40
41     public void setValue(String value) {
42         this.value = value;
43     }
44
45     public @Nullable String getLabel() {
46         return label;
47     }
48
49     public void setLabel(String label) {
50         this.label = label;
51     }
52 }