mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +08:00
26 lines
559 B
C#
26 lines
559 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace Wox.Plugin.SystemPlugins.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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|