2 * Copyright (c) 2010-2022 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.homeconnect.internal.client.model;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
22 * HTTP response model.
24 * @author Jonas BrĂ¼stel - Initial Contribution
27 public class HomeConnectResponse {
28 private final int code;
29 private final Map<String, String> header;
30 private final @Nullable String body;
32 public HomeConnectResponse(int code, Map<String, String> header, @Nullable String body) {
38 public int getCode() {
42 public Map<String, String> getHeader() {
46 public @Nullable String getBody() {
51 public String toString() {
52 return "Response [code=" + code + ", header=" + header + ", body=" + body + "]";