Implement send mail and mail list

Optimize duplicate code
This commit is contained in:
jie65535 committed 2022-10-28 00:22:15 +08:00
1 parent 5c7c64ea6c
commit fd515b18cf
8 files changed
+859 -642

No files matched your search

@@ -45,5 +45,13 @@ namespace GrasscutterTools.Game.Mail
/// 发送时间
/// </summary>
public DateTime SendTime { get; set; }
public override string ToString()
{
if (SendToAll)
return $"ToAll: [{Title}] {Content} | {SendTime}";
else
return $"To[{Recipient}]: [{Title}] {Content} | {SendTime}";
}
}
}