]> git.basschouten.com Git - openhab-addons.git/blob
51e53bae7e3b5ef91875cbc9600c5b475fdec199
[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.io.neeo.internal.servletservices.models;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The brain information class. This class will be used to communicate the brain ID or IP address between the
20  * integration
21  * page and the servlet
22  *
23  * @author Tim Roberts - Initial Contribution
24  */
25 @NonNullByDefault
26 public class BrainInfo {
27     /** The possibly null, possibly empty brain identifier (used when removing a brain) */
28     @Nullable
29     private String brainId;
30     /** The possibly null, possibly empty brain ip address (used when adding a brain) */
31     @Nullable
32     private String brainIp;
33
34     /**
35      * Returns the brain identifier
36      *
37      * @return a possibly null, possibly empty brain ID
38      */
39     @Nullable
40     public String getBrainId() {
41         return brainId;
42     }
43
44     /**
45      * Returns the brain ip address
46      *
47      * @return a possibly null, possibly empty brain ip address
48      */
49     @Nullable
50     public String getBrainIp() {
51         return brainIp;
52     }
53
54     @Override
55     public String toString() {
56         return "BrainId [brainId=" + brainId + ", brainIp=" + brainIp + "]";
57     }
58 }