2 * Copyright (c) 2010-2021 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;
16 * The {@link BigAssFanConfig} is responsible for storing the BigAssFan thing configuration.
18 * @author Mark Hilbush - Initial contribution
20 public class BigAssFanConfig {
27 * IP address of the device
29 private String ipAddress;
32 * MAC address of the device
34 private String macAddress;
36 public String getLabel() {
40 public void setLabel(String label) {
44 public String getIpAddress() {
48 public void setIpAddress(String ipAddress) {
49 this.ipAddress = ipAddress;
52 public String getMacAddress() {
56 public void setMacAddress(String macAddress) {
57 this.macAddress = macAddress;
60 public boolean isValid() {
61 if (label == null || label.isBlank()) {
64 if (ipAddress == null || ipAddress.isBlank()) {
67 if (macAddress == null || macAddress.isBlank()) {
74 public String toString() {
75 return "BigAssFanConfig{label=" + label + ", ipAddress=" + ipAddress + ", macAddress=" + macAddress + "}";