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