]> git.basschouten.com Git - openhab-addons.git/blob
1bdd7b7fb7172066d1b190bdd1965d645d6da4fa
[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.bsblan.internal.api.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link BsbLanApiParameterSetResponseDTO} reflects the response received
19  * when setting a parameter.
20  *
21  * @author Peter Schraffl - Initial contribution
22  */
23 public class BsbLanApiParameterSetResultDTO {
24
25     public enum Status {
26         @SerializedName("0")
27         ERROR(0),
28         @SerializedName("1")
29         SUCCESS(1),
30         @SerializedName("2")
31         READ_ONLY(2);
32
33         private final int value;
34
35         Status(int value) {
36             this.value = value;
37         }
38
39         public int getValue() {
40             return value;
41         }
42     }
43
44     @SerializedName("status")
45     public Status status;
46 }