2015-01-03 15:20:34 +08:00
|
|
|
|
using System.Collections.Generic;
|
2014-03-27 16:56:50 +08:00
|
|
|
|
|
2015-01-03 15:20:34 +08:00
|
|
|
|
namespace Wox.Plugin.WebSearch.SuggestionSources
|
2014-03-27 16:56:50 +08:00
|
|
|
|
{
|
|
|
|
|
public interface ISuggestionSource
|
|
|
|
|
{
|
|
|
|
|
List<string> GetSuggestions(string query);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public abstract class AbstractSuggestionSource : ISuggestionSource
|
|
|
|
|
{
|
2015-02-20 21:14:15 +08:00
|
|
|
|
public IHttpProxy Proxy { get; set; }
|
|
|
|
|
|
|
|
|
|
public AbstractSuggestionSource(IHttpProxy httpProxy)
|
|
|
|
|
{
|
|
|
|
|
Proxy = httpProxy;
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-27 16:56:50 +08:00
|
|
|
|
public abstract List<string> GetSuggestions(string query);
|
|
|
|
|
}
|
|
|
|
|
}
|