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.lutron.internal.grxprg;
16 * Configuration class for the GRX-PRG/GRX-CI-PRG bridge
18 * @author Tim Roberts - Initial contribution
20 public class PrgBridgeConfig {
23 * IP Address (or host name) of switch
25 private String ipAddress;
28 * The username to log in with
30 private String userName;
33 * Polling time (in seconds) to attempt a reconnect if the socket session has failed
35 private int retryPolling;
38 * Returns the IP address or host name of the switch
40 * @return the IP address or host name of the swtich
42 public String getIpAddress() {
47 * Sets the IP address or host name of the switch
49 * @param ipAddress the IP Address or host name of the switch
51 public void setIpAddress(String ipAddress) {
52 this.ipAddress = ipAddress;
56 * Gets the username used to login with
58 * @return the username used to login with
60 public String getUserName() {
65 * Sets the username used to login with
67 * @param userName the username used to login with
69 public void setUserName(String userName) {
70 this.userName = userName;
74 * Gets the polling (in seconds) to reconnect
76 * @return the polling (in seconds) to reconnect
78 public int getRetryPolling() {
83 * Sets the polling (in seconds) to reconnect
85 * @param retryPolling the polling (in seconds to reconnect)
87 public void setRetryPolling(int retryPolling) {
88 this.retryPolling = retryPolling;