]> git.basschouten.com Git - openhab-addons.git/blob
33933c63b0d32ef1512cca6cafd333bceb9a1a17
[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.irobot.internal.config;
14
15 import static org.openhab.binding.irobot.internal.IRobotBindingConstants.UNKNOWN;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * The {@link IRobotConfiguration} is a class for IRobot thing configuration
21  *
22  * @author Pavel Fedin - Initial contribution
23  * @author Alexander Falkenstern - Add supported robot type
24  */
25 @NonNullByDefault
26 public class IRobotConfiguration {
27     private String ipaddress = UNKNOWN;
28     private String password = UNKNOWN;
29     private String blid = UNKNOWN;
30
31     public String getIpAddress() {
32         return ipaddress;
33     }
34
35     public void setIpAddress(final String ipaddress) {
36         this.ipaddress = ipaddress.trim();
37     }
38
39     public String getPassword() {
40         return password.isBlank() ? UNKNOWN : password;
41     }
42
43     public void setPassword(final String password) {
44         this.password = password;
45     }
46
47     public String getBlid() {
48         return blid.isBlank() ? UNKNOWN : blid;
49     }
50
51     public void setBlid(final String blid) {
52         this.blid = blid;
53     }
54 }