mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
20 lines
520 B
C#
20 lines
520 B
C#
namespace Wox.Plugin.WebSearch.SuggestionSources
|
|
{
|
|
public class SuggestionSourceFactory
|
|
{
|
|
public static ISuggestionSource GetSuggestionSource(string name,PluginInitContext context)
|
|
{
|
|
switch (name.ToLower())
|
|
{
|
|
case "google":
|
|
return new Google(context.Proxy);
|
|
|
|
case "baidu":
|
|
return new Baidu(context.Proxy);
|
|
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|