| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Linq; |
| 4 | using System.Text; |
| 5 | using System.Threading.Tasks; |
| 6 | |
| 7 | namespace Core.Models.Config |
| 8 | { |
| 9 | ///<summary> |
| 10 | /// |
| 11 | ///</summary> |
| 12 | public class BehaviorModel |
| 13 | { |
| 14 | [Config(Name = "睡眠监测", Description = "离开电脑时自动停止统计,重启软件生效。(一般情况不建议关闭)", Group = "偏好")] |
| 15 | ///<summary> |
| 16 | /// |
| 17 | ///</summary> |
| 18 | public bool IsSleepWatch { get; set; } = true; |
| 19 | [Config(IsCanImportExport = true, Name = "忽略应用", Description = "可以通过进程名称或者正则表达式进行匹配。当使用正则表达式时可以匹配程序路径", Group = "忽略应用", Placeholder = "进程名称,不需要输入.exe。支持正则表达式")] |
| 20 | ///<summary> |
| 21 | /// |
| 22 | ///</summary> |
| 23 | public List<string> IgnoreProcessList { get; set; } = new List<string>(); |
| 24 | |
| 25 | [Config(IsCanImportExport = true, Name = "忽略URL", Description = "过滤不需要统计的网站或链接", Group = "忽略URL", Placeholder = "URL 支持正则表达式")] |
| 26 | ///<summary> |
| 27 | /// |
| 28 | ///</summary> |
| 29 | public List<string> IgnoreURLList { get; set; } = new List<string>(); |
| 30 | |
| 31 | [Config(Name = "应用白名单", Description = "仅统计白名单内的应用", Group = "应用白名单")] |
| 32 | ///<summary> |
| 33 | /// |
| 34 | ///</summary> |
| 35 | public bool IsWhiteList { get; set; } = false; |
| 36 | [Config(IsCanImportExport = true, Name = "应用白名单", Description = "可以通过进程名称或者正则表达式进行匹配,当使用正则表达式时可以匹配程序路径", Group = "应用白名单", Placeholder = "进程名称,不需要输入.exe。支持正则表达式")] |
| 37 | ///<summary> |
| 38 | /// |
| 39 | ///</summary> |
| 40 | public List<string> ProcessWhiteList { get; set; } = new List<string>(); |
| 41 | } |
| 42 | } |