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,13 @@
using DbusSmsForward.SMSModel;
namespace DbusSmsForward.Notifications;
public abstract class NotificationSenderBase(string name) : INotificationSender
{
public string Name { get; } = name;
public abstract bool IsEnabled { get; }
public abstract Task SendAsync(SmsContentModel sms, string body, string deviceName, CancellationToken cancellationToken);
protected static string BuildTitle(string telNumber, string codeValue)
=> string.IsNullOrWhiteSpace(codeValue) ? $"短信转发 {telNumber}" : $"{codeValue} 短信转发 {telNumber}";
}