mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
25 lines
559 B
C#
25 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;
|
|
}
|
|
}
|
|
}
|
|
}
|