old_flsystem/应用/CleaningTools/Config.cs

83 lines
2.1 KiB
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
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
/// <summary>
/// 是否定时清理
/// </summary>
public bool timing { get; set; }
/// <summary>
/// 定时清理触发时间
/// </summary>
public string timing_time { get; set; }
#endregion
#region
/// <summary>
/// 是否开启自动清理死粉
/// </summary>
public bool switch_delete_friend { get; set; }
/// <summary>
/// 清理休眠僵尸粉时间(秒)
/// </summary>
public int cleansleep { get; set; }
/// <summary>
/// 清理数量限制
/// </summary>
public int cleanslimit { get; set; }
/// <summary>
/// 自动清理僵尸粉的天数
/// </summary>
public int autocleanday { get; set; }
/// <summary>
/// 用于记录自动清理僵尸粉上次时间
/// </summary>
public string delete_friend_lastTime { get; set; }
#endregion
#region pc端的微信聊天缓存
/// <summary>
/// 是否开启自动清理聊天记录
/// </summary>
public bool isAutoClearChatMsg { get; set; }
/// <summary>
/// 清理聊天记录的时间
/// </summary>
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");
}
}
}