2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.pilight.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link PilightBridgeConfiguration} class contains fields mapping thing configuration parameters.
20 * @author Stefan Röllin - Initial contribution
21 * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
24 public class PilightBridgeConfiguration {
26 private String ipAddress = "";
28 private int delay = 500;
29 private boolean backgroundDiscovery = true;
31 public String getIpAddress() {
35 public void setIpAddress(String ipAddress) {
36 this.ipAddress = ipAddress;
39 public Integer getPort() {
43 public void setPort(Integer port) {
47 public int getDelay() {
51 public void setDelay(Integer delay) {
55 public boolean getBackgroundDiscovery() {
56 return backgroundDiscovery;
59 public void setBackgroundDiscovery(boolean flag) {
60 backgroundDiscovery = flag;