]> git.basschouten.com Git - openhab-addons.git/blob
7af9b1b0044757409e54e0a3c440c29c0473b46a
[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.binding.freebox.internal;
14
15 import java.util.List;
16
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;
22
23 /**
24  * The {@link FreeboxDataListener} is notified by the bridge thing handler
25  * with updated data from the Freebox server.
26  *
27  * @author Laurent Garnier - Initial contribution
28  * @author Laurent Garnier - add discovery configuration
29  * @author Laurent Garnier - use new internal classes
30  */
31 @NonNullByDefault
32 public interface FreeboxDataListener {
33
34     /**
35      * This method is called just after the bridge thing handler fetched new data
36      * from the Freebox server.
37      *
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.
41      */
42     public void onDataFetched(ThingUID bridge, @Nullable List<FreeboxLanHost> lanHosts,
43             @Nullable List<FreeboxAirMediaReceiver> airPlayDevices);
44 }