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}"; }