All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.api.client.utils.ApiClientMediaQuerySearchRepository Maven / Gradle / Ivy

package nl.vpro.api.client.utils;

import javax.inject.Inject;
import javax.inject.Named;

import nl.vpro.api.client.frontend.NpoApiClients;
import nl.vpro.domain.api.SuggestResult;
import nl.vpro.domain.api.suggest.Query;
import nl.vpro.domain.api.suggest.QuerySearchRepository;

/**
 * @author Michiel Meeuwissen
 * @since 1.10
 */
@Named("mediaQueryRepository")
public class ApiClientMediaQuerySearchRepository implements QuerySearchRepository {

    final NpoApiClients clients;

    @Inject
    public ApiClientMediaQuerySearchRepository(NpoApiClients clients) {
        this.clients = clients;
    }

    @Override
    public void index(Query query) {

    }

    @Override
    public SuggestResult suggest(String input, String profile, Integer max) {
        return clients.getMediaService().suggest(input, profile, max);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy