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.binding.freebox.internal;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.freebox.internal.api.model.FreeboxAirMediaReceiver;
20 import org.openhab.binding.freebox.internal.api.model.FreeboxLanHost;
21 import org.openhab.core.thing.ThingUID;
24 * The {@link FreeboxDataListener} is notified by the bridge thing handler
25 * with updated data from the Freebox server.
27 * @author Laurent Garnier - Initial contribution
28 * @author Laurent Garnier - add discovery configuration
29 * @author Laurent Garnier - use new internal classes
32 public interface FreeboxDataListener {
35 * This method is called just after the bridge thing handler fetched new data
36 * from the Freebox server.
38 * @param bridge the Freebox server bridge.
39 * @param lanHosts the LAN data received from the Freebox server.
40 * @param airPlayDevices the list of AirPlay devices received from the Freebox server.
42 public void onDataFetched(ThingUID bridge, @Nullable List<FreeboxLanHost> lanHosts,
43 @Nullable List<FreeboxAirMediaReceiver> airPlayDevices);