feat: publish dbussmsforward refactor

This commit is contained in:
2026-05-08 23:54:03 +08:00
commit 9f1ee9ffe6
77 changed files with 15585 additions and 0 deletions
@@ -0,0 +1,21 @@
using DbusSmsForward.ProcessSmsContent;
using DbusSmsForward.SMSModel;
using DbusSmsForward.SettingModel;
namespace DbusSmsForward.Services;
public static class NotificationContentBuilder
{
public static string BuildBody(SmsContentModel sms, string deviceName)
=> $"发信电话:{sms.TelNumber}\n时间:{sms.SmsDate}\n转发设备:{deviceName}\n短信内容:{sms.SmsContent}";
public static SmsCodeModel ExtractCode(DbusSmsForwardOptions options, SmsContentModel sms)
{
if (!options.Forwarding.EnableSmsCodeExtraction)
{
return new SmsCodeModel();
}
return GetSmsContentCode.GetSmsCodeModel(sms.SmsContent);
}
}