]> git.basschouten.com Git - openhab-addons.git/blob
b45e95627496415ee7b2b1313773363582d6788c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.pilight.internal.dto;
14
15 /**
16  * Response to a connection or state change request
17  *
18  * @author Jeroen Idserda - Initial contribution
19  * @author Stefan Röllin - Port to openHAB 2 pilight binding
20  * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
21  */
22 public class Response {
23
24     public static final String SUCCESS = "success";
25
26     public static final String FAILURE = "failure";
27
28     private String status;
29
30     public String getStatus() {
31         return status;
32     }
33
34     public void setStatus(String status) {
35         this.status = status;
36     }
37
38     public boolean isSuccess() {
39         return SUCCESS.equals(status);
40     }
41 }