]> git.basschouten.com Git - openhab-addons.git/blob
0631443b2c6b7e9e972f8aee474973d663b88308
[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.lirc.internal.messages;
14
15 /**
16  * Represents a response received from the LIRC server
17  *
18  * @author Andrew Nagle - Initial contribution
19  */
20 public class LIRCResponse {
21
22     private final String command;
23     private final boolean success;
24     private final String[] data;
25
26     public LIRCResponse(String command, boolean success, String[] data) {
27         super();
28         this.command = command;
29         this.success = success;
30         this.data = data;
31     }
32
33     public String getCommand() {
34         return command;
35     }
36
37     public boolean isSuccess() {
38         return success;
39     }
40
41     public String[] getData() {
42         return data;
43     }
44 }