2015-10-31 07:17:34 +08:00
|
|
|
|
using System.Collections.Generic;
|
2015-01-26 22:50:38 +08:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using Wox.Infrastructure.Storage;
|
|
|
|
|
|
|
|
|
|
namespace Wox.Plugin.WebSearch
|
|
|
|
|
{
|
2016-01-04 13:00:16 +08:00
|
|
|
|
public class WebSearchStorage : JsonStrorage<WebSearchStorage>
|
2015-01-26 22:50:38 +08:00
|
|
|
|
{
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
public List<WebSearch> WebSearches { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
public bool EnableWebSearchSuggestion { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
public string WebSearchSuggestionSource { get; set; }
|
|
|
|
|
|
|
|
|
|
protected override string ConfigFolder
|
|
|
|
|
{
|
|
|
|
|
get { return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override string ConfigName
|
|
|
|
|
{
|
|
|
|
|
get { return "setting"; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|