]> git.basschouten.com Git - openhab-addons.git/blob
0fb3c8f229e13e0ffd62be7773000113fea029e8
[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.hyperion.internal.protocol.ng;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link NgResponse} is a POJO for a response from the Hyperion.ng server.
19  *
20  * @author Daniel Walters - Initial contribution
21  */
22 public class NgResponse {
23
24     @SerializedName("command")
25     private String command;
26
27     @SerializedName("success")
28     private boolean success;
29
30     @SerializedName("tan")
31     private int tan;
32
33     @SerializedName("info")
34     private NgInfo info;
35
36     @SerializedName("error")
37     private String error;
38
39     public String getCommand() {
40         return command;
41     }
42
43     public boolean isSuccess() {
44         return success;
45     }
46
47     public int getTan() {
48         return tan;
49     }
50
51     public NgInfo getInfo() {
52         return info;
53     }
54
55     public String getError() {
56         return error;
57     }
58 }