PowerToys/Plugins/Wox.Plugin.Program/ProgramSource.cs

25 lines
734 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
namespace Wox.Plugin.Program
{
[Serializable]
public class ProgramSource
{
public string Location { get; set; }
public string Type { get; set; }
2014-03-19 20:16:20 +08:00
public int BonusPoints { get; set; }
public bool Enabled { get; set; }
2016-04-25 01:34:49 +08:00
// happlebao todo: temp hack for program suffixes
public string[] Suffixes { get; set; } = {"bat", "appref-ms", "exe", "lnk"};
public const char SuffixSeperator = ';';
public int MaxDepth { get; set; }
public Dictionary<string, string> Meta { get; set; }
2014-03-19 20:16:20 +08:00
public override string ToString()
{
2016-01-07 05:34:42 +08:00
return (Type ?? "") + ":" + Location ?? "";
2014-03-19 20:16:20 +08:00
}
}
}