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.ecovacs.internal.api.impl.dto.response.main;
15 import com.google.gson.annotations.SerializedName;
18 * @author Johannes Ptaszyk - Initial contribution
20 public class ResponseWrapper<T> {
21 @SerializedName("code")
22 private final String code;
24 @SerializedName("time")
25 private final String time;
27 @SerializedName("msg")
28 private final String message;
30 @SerializedName("data")
33 @SerializedName("success")
34 private final boolean success;
36 public ResponseWrapper(String code, String time, String message, T data, boolean success) {
39 this.message = message;
41 this.success = success;
44 public String getCode() {
48 public String getTime() {
52 public String getMessage() {
60 public boolean isSuccess() {