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.irobot.internal.config;
15 import static org.openhab.binding.irobot.internal.IRobotBindingConstants.UNKNOWN;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * The {@link IRobotConfiguration} is a class for IRobot thing configuration
22 * @author Pavel Fedin - Initial contribution
23 * @author Alexander Falkenstern - Add supported robot type
26 public class IRobotConfiguration {
27 private String ipaddress = UNKNOWN;
28 private String password = UNKNOWN;
29 private String blid = UNKNOWN;
31 public String getIpAddress() {
35 public void setIpAddress(final String ipaddress) {
36 this.ipaddress = ipaddress.trim();
39 public String getPassword() {
40 return password.isBlank() ? UNKNOWN : password;
43 public void setPassword(final String password) {
44 this.password = password;
47 public String getBlid() {
48 return blid.isBlank() ? UNKNOWN : blid;
51 public void setBlid(final String blid) {