public void broadcastAvailablePlaylists(Supplier<List<String>> availablePlaylist, Function<String, Playlist> playlistForNameFunction) {
        if (availablePlaylist == null || playlistForNameFunction == null)
            return;
        this.availablePlaylist = availablePlaylist;
        this.playlistForNameFunction = playlistForNameFunction;
        capabilities.setBroadcasting(true);
    }
public void broadcastAvailablePlaylists(Supplier<List<String>> availablePlaylist, Function<String, Playlist> playlistForNameFunction) {
        if (availablePlaylist == null || playlistForNameFunction == null)
            return;
        this.availablePlaylist = availablePlaylist;
        this.playlistForNameFunction = playlistForNameFunction;
        capabilities.setBroadcasting(true);
    }
public void broadcastAvailablePlaylists ( Supplier < List < String > > availablePlaylist , Function < String , Playlist > playlistForNameFunction ) { if ( availablePlaylist == null || playlistForNameFunction == null ) return ; this . availablePlaylist = availablePlaylist ; this . playlistForNameFunction = playlistForNameFunction ; capabilities . setBroadcasting ( true ) ; }
adds the ability to return the available playlists on request.
@param availablePlaylist retruns a List of Strings which represent the Playlists
@param playlistForNameFunction takes a String from the List and returns the Playlist
adds the ability to return the available playlists on request .