2 * Copyright (c) 2010-2024 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.fronius.internal.api;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link HeadStatus} is responsible for storing
19 * the "status" node from the {@link Head}
21 * @author Thomas Rokohl - Initial contribution
23 public class HeadStatus {
24 @SerializedName("Code")
26 @SerializedName("Reason")
27 private String reason;
28 @SerializedName("UserMessage")
29 private String userMessage;
31 public int getCode() {
35 public void setCode(int code) {
39 public String getReason() {
46 public void setReason(String reason) {
50 public String getUserMessage() {
51 if (userMessage == null) {
57 public void setUserMessage(String userMessage) {
58 this.userMessage = userMessage;