]> git.basschouten.com Git - openhab-addons.git/blob
67832392133328cc2822b8a3c67b8e283c99c9b2
[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;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link PilightBridgeConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Stefan Röllin - Initial contribution
21  * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
22  */
23 @NonNullByDefault
24 public class PilightBridgeConfiguration {
25
26     private String ipAddress = "";
27     private int port = 0;
28     private int delay = 500;
29     private boolean backgroundDiscovery = true;
30
31     public String getIpAddress() {
32         return ipAddress;
33     }
34
35     public void setIpAddress(String ipAddress) {
36         this.ipAddress = ipAddress;
37     }
38
39     public Integer getPort() {
40         return port;
41     }
42
43     public void setPort(Integer port) {
44         this.port = port;
45     }
46
47     public int getDelay() {
48         return delay;
49     }
50
51     public void setDelay(Integer delay) {
52         this.delay = delay;
53     }
54
55     public boolean getBackgroundDiscovery() {
56         return backgroundDiscovery;
57     }
58
59     public void setBackgroundDiscovery(boolean flag) {
60         backgroundDiscovery = flag;
61     }
62 }