]> git.basschouten.com Git - openhab-addons.git/blob
ecec4447d99560fe8f0f6322b89fb898b8a9ff91
[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.lutron.internal.grxprg;
14
15 /**
16  * Configuration class for the GRX-PRG/GRX-CI-PRG bridge
17  *
18  * @author Tim Roberts - Initial contribution
19  */
20 public class PrgBridgeConfig {
21
22     /**
23      * IP Address (or host name) of switch
24      */
25     private String ipAddress;
26
27     /**
28      * The username to log in with
29      */
30     private String userName;
31
32     /**
33      * Polling time (in seconds) to attempt a reconnect if the socket session has failed
34      */
35     private int retryPolling;
36
37     /**
38      * Returns the IP address or host name of the switch
39      *
40      * @return the IP address or host name of the swtich
41      */
42     public String getIpAddress() {
43         return ipAddress;
44     }
45
46     /**
47      * Sets the IP address or host name of the switch
48      *
49      * @param ipAddress the IP Address or host name of the switch
50      */
51     public void setIpAddress(String ipAddress) {
52         this.ipAddress = ipAddress;
53     }
54
55     /**
56      * Gets the username used to login with
57      *
58      * @return the username used to login with
59      */
60     public String getUserName() {
61         return userName;
62     }
63
64     /**
65      * Sets the username used to login with
66      *
67      * @param userName the username used to login with
68      */
69     public void setUserName(String userName) {
70         this.userName = userName;
71     }
72
73     /**
74      * Gets the polling (in seconds) to reconnect
75      *
76      * @return the polling (in seconds) to reconnect
77      */
78     public int getRetryPolling() {
79         return retryPolling;
80     }
81
82     /**
83      * Sets the polling (in seconds) to reconnect
84      *
85      * @param retryPolling the polling (in seconds to reconnect)
86      */
87     public void setRetryPolling(int retryPolling) {
88         this.retryPolling = retryPolling;
89     }
90 }