mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
b22a4501cc
1. introduce variable 2. part of #389 3. refactoring program suffix in program plugin 4. 全局变量一时爽,代码重构火葬场
24 lines
638 B
C#
24 lines
638 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Wox.Plugin.Program
|
|
{
|
|
[Serializable]
|
|
public class ProgramSource
|
|
{
|
|
public string Location { get; set; }
|
|
public string Type { get; set; }
|
|
public int BonusPoints { get; set; }
|
|
public bool Enabled { get; set; }
|
|
public string[] Suffixes { get; set; }
|
|
public const char SuffixSeperator = ';';
|
|
public int MaxDepth { get; set; }
|
|
public Dictionary<string, string> Meta { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return (Type ?? "") + ":" + Location ?? "";
|
|
}
|
|
}
|
|
}
|