2 * Copyright (c) 2010-2021 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.nuki.internal.dataexchange;
15 import java.time.Instant;
18 * The {@link NukiBaseResponse} class is the base class for API Responses.
20 * @author Markus Katter - Initial contribution
22 public class NukiBaseResponse {
25 private String message;
26 private boolean success;
27 private Instant created;
29 public NukiBaseResponse(int status, String message) {
31 this.message = message;
32 this.created = Instant.now();
35 public int getStatus() {
39 public void setStatus(int status) {
43 public String getMessage() {
47 public void setMessage(String message) {
48 this.message = message;
51 public boolean isSuccess() {
55 public void setSuccess(boolean success) {
56 this.success = success;
59 public Instant getCreated() {