mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
21 lines
468 B
C#
21 lines
468 B
C#
namespace Wox.Plugin.WebSearch.SuggestionSources
|
|
{
|
|
public class SuggestionSourceFactory
|
|
{
|
|
public static ISuggestionSource GetSuggestionSource(string name)
|
|
{
|
|
switch (name.ToLower())
|
|
{
|
|
case "google":
|
|
return new Google();
|
|
|
|
case "baidu":
|
|
return new Baidu();
|
|
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|