2 * Copyright (c) 2010-2020 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.lutron.internal.config;
15 import org.apache.commons.lang.StringUtils;
18 * Configuration settings for an {@link org.openhab.binding.lutron.internal.handler.IPBridgeHandler}.
20 * @author Allan Tong - Initial contribution
21 * @author Bob Adair - Added reconnect, heartbeat and discoveryFile parameters
23 public class IPBridgeConfig {
24 public String ipAddress;
26 public String password;
27 public String discoveryFile;
32 public boolean sameConnectionParameters(IPBridgeConfig config) {
33 return StringUtils.equals(ipAddress, config.ipAddress) && StringUtils.equals(user, config.user)
34 && StringUtils.equals(password, config.password) && (reconnect == config.reconnect)
35 && (heartbeat == config.heartbeat) && (delay == config.delay);