using Api.Framework.SDK; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CleaningTools { [Config(Name = "插件-清理专家-配置")] public class Config { #region 缓存清理 /// /// 是否定时清理 /// public bool timing { get; set; } /// /// 定时清理触发时间 /// public string timing_time { get; set; } #endregion #region 僵尸粉清理 /// /// 是否开启自动清理死粉 /// public bool switch_delete_friend { get; set; } /// /// 清理休眠僵尸粉时间(秒) /// public int cleansleep { get; set; } /// /// 清理数量限制 /// public int cleanslimit { get; set; } /// /// 自动清理僵尸粉的天数 /// public int autocleanday { get; set; } /// /// 用于记录自动清理僵尸粉上次时间 /// public string delete_friend_lastTime { get; set; } #endregion #region 清理pc端的微信聊天缓存 /// /// 是否开启自动清理聊天记录 /// public bool isAutoClearChatMsg { get; set; } /// /// 清理聊天记录的时间 /// public string clear_msg_time { get; set; } #endregion public Config() { this.isAutoClearChatMsg = false; this.clear_msg_time = "01:30"; this.timing = true; this.timing_time = "02:30"; this.cleansleep = 3; this.cleanslimit = 50; this.autocleanday = 7; //保存为今天的2-4点钟某一刻 this.delete_friend_lastTime = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 02:00:00")).AddMinutes(new Random().Next(0, 120)).ToString("yyyy-MM-dd HH:mm:ss"); } } }