]> git.basschouten.com Git - openhab-addons.git/blob
f56a1dcf3fcb5a31d3e20f58f226891dc37f1296
[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.homematic.internal.model;
14
15 import com.thoughtworks.xstream.annotations.XStreamAlias;
16
17 /**
18  * Result object from a TclRega Script call.
19  *
20  * @author Gerhard Riegler - Initial contribution
21  */
22 @XStreamAlias("result")
23 public class HmResult {
24
25     private boolean valid;
26
27     public HmResult() {
28     }
29
30     public HmResult(boolean valid) {
31         this.valid = valid;
32     }
33
34     /**
35      * Returns true if the result is valid.
36      */
37     public boolean isValid() {
38         return valid;
39     }
40 }