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.io.neeo.internal.servletservices.models;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The brain information class. This class will be used to communicate the brain ID or IP address between the
21 * page and the servlet
23 * @author Tim Roberts - Initial Contribution
26 public class BrainInfo {
27 /** The possibly null, possibly empty brain identifier (used when removing a brain) */
29 private String brainId;
30 /** The possibly null, possibly empty brain ip address (used when adding a brain) */
32 private String brainIp;
35 * Returns the brain identifier
37 * @return a possibly null, possibly empty brain ID
40 public String getBrainId() {
45 * Returns the brain ip address
47 * @return a possibly null, possibly empty brain ip address
50 public String getBrainIp() {
55 public String toString() {
56 return "BrainId [brainId=" + brainId + ", brainIp=" + brainIp + "]";