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.bigassfan.internal;
15 import org.apache.commons.lang.StringUtils;
18 * The {@link BigAssFanConfig} is responsible for storing the BigAssFan thing configuration.
20 * @author Mark Hilbush - Initial contribution
22 public class BigAssFanConfig {
29 * IP address of the device
31 private String ipAddress;
34 * MAC address of the device
36 private String macAddress;
38 public String getLabel() {
42 public void setLabel(String label) {
46 public String getIpAddress() {
50 public void setIpAddress(String ipAddress) {
51 this.ipAddress = ipAddress;
54 public String getMacAddress() {
58 public void setMacAddress(String macAddress) {
59 this.macAddress = macAddress;
62 public boolean isValid() {
63 if (StringUtils.isBlank(label)) {
66 if (StringUtils.isBlank(ipAddress)) {
69 if (StringUtils.isBlank(macAddress)) {
76 public String toString() {
77 return "BigAssFanConfig{label=" + label + ", ipAddress=" + ipAddress + ", macAddress=" + macAddress + "}";