mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 20:19:17 +08:00
21 lines
520 B
C#
21 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;
|
|
}
|
|
}
|
|
}
|
|
}
|