feat: publish dbussmsforward refactor
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
Reference in New Issue
Block a user