]> git.basschouten.com Git - openhab-addons.git/blob
47d431aa434abbec9b604fa583c1fc31c3f77393
[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.fronius.internal.api;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link HeadStatus} is responsible for storing
19  * the "status" node from the {@link Head}
20  *
21  * @author Thomas Rokohl - Initial contribution
22  */
23 public class HeadStatus {
24     @SerializedName("Code")
25     private int code;
26     @SerializedName("Reason")
27     private String reason;
28     @SerializedName("UserMessage")
29     private String userMessage;
30
31     public int getCode() {
32         return code;
33     }
34
35     public void setCode(int code) {
36         this.code = code;
37     }
38
39     public String getReason() {
40         if (reason == null) {
41             reason = "";
42         }
43         return reason;
44     }
45
46     public void setReason(String reason) {
47         this.reason = reason;
48     }
49
50     public String getUserMessage() {
51         if (userMessage == null) {
52             userMessage = "";
53         }
54         return userMessage;
55     }
56
57     public void setUserMessage(String userMessage) {
58         this.userMessage = userMessage;
59     }
60 }