]> git.basschouten.com Git - openhab-addons.git/blob
6029f2f0985e58c83baa9283b37f72b19dc4b055
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.powermax.internal.state;
14
15 /**
16  * A class to store the settings of an X10 device
17  *
18  * @author Laurent Garnier - Initial contribution
19  */
20 public class PowermaxX10Settings {
21
22     private String name;
23     private boolean enabled;
24
25     public PowermaxX10Settings(String name, boolean enabled) {
26         this.name = name;
27         this.enabled = enabled;
28     }
29
30     /**
31      * @return the name of the X10 device
32      */
33     public String getName() {
34         return name;
35     }
36
37     /**
38      * @return true if the X10 device is enabled; false if not
39      */
40     public boolean isEnabled() {
41         return enabled;
42     }
43 }