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.discovery;
15 import java.net.InetAddress;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.io.neeo.internal.models.NeeoSystemInfo;
21 * The interface defines the contract for discovery notifications
23 * @author Tim Roberts - Initial Contribution
26 public interface DiscoveryListener {
29 * Notification that a new brain was discovered
31 * @param brainSysInfo the non-null brain system information
32 * @param ipAddress the ip address of the brain
34 void discovered(NeeoSystemInfo brainSysInfo, InetAddress ipAddress);
37 * Notification that a brain has a new IP Address
39 * @param brainSysInfo the non-null brain system information
40 * @param oldIpAddress the non-null old ip address of the brain
41 * @param newIpAddress the non-null new ip address of the brain
43 void updated(NeeoSystemInfo brainSysInfo, InetAddress oldIpAddress, InetAddress newIpAddress);
46 * Notification that a brain was removed
48 * @param brainSysInfo the non-null brain system information
50 void removed(NeeoSystemInfo brainSysInfo);