using System; using System.Collections; using System.Collections.Generic; namespace Wox.Plugin { public class Result { public string Title { get; set; } public string SubTitle { get; set; } public string IcoPath { get; set; } /// /// return true to hide wox after select result /// public Func Action { get; set; } public int Score { get; set; } /// /// Auto add scores for MRU items /// public bool AutoAjustScore { get; set; } //todo: this should be controlled by system, not visible to users /// /// Only resulsts that originQuery match with curren query will be displayed in the panel /// public Query OriginQuery { get; set; } /// /// Don't set this property if you are developing a plugin /// public string PluginDirectory { get; set; } public new bool Equals(object obj) { if (obj == null || !(obj is Result)) return false; Result r = (Result)obj; return r.Title == Title && r.SubTitle == SubTitle; } public override string ToString() { return Title + SubTitle; } public Result() { } public Result(string Title = null, string IcoPath = null, string SubTitle = null) { this.Title = Title; this.IcoPath = IcoPath; this.SubTitle = SubTitle; } } }