2 * Copyright (c) 2010-2023 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 Head} is responsible for storing
19 * the "head" node of the JSON response from the Fronius Solar APIs (V1)
21 * The contents of the response object will vary depending on the preceding request but it always contains a common
22 * response header and a request body.
24 * @author Thomas Rokohl - Initial contribution
27 @SerializedName("RequestArguments")
28 private HeadRequestArguments requestArguments;
29 @SerializedName("Status")
30 private HeadStatus status;
31 @SerializedName("Timestamp")
32 private String timestamp;
34 public HeadRequestArguments getRequestArguments() {
35 if (requestArguments == null) {
36 requestArguments = new HeadRequestArguments();
38 return requestArguments;
41 public void setRequestArguments(HeadRequestArguments requestArguments) {
42 this.requestArguments = requestArguments;
45 public HeadStatus getStatus() {
47 status = new HeadStatus();
49 status.setReason("undefined runtime error");
54 public void setStatus(HeadStatus status) {
58 public String getTimestamp() {
59 if (timestamp == null) {
65 public void setTimestamp(String timestamp) {
66 this.timestamp = timestamp;