mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Moving Notification to dedicated Service namespace
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using BTCPayServer.Data;
|
||||
using BTCPayServer.Models.NotificationViewModels;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Services.Notifications.Blobs
|
||||
{
|
||||
internal class NewVersionNotification : NotificationBase
|
||||
{
|
||||
internal override string NotificationType => "NewVersionNotification";
|
||||
|
||||
public string Version { get; set; }
|
||||
|
||||
public override void FillViewModel(NotificationViewModel vm)
|
||||
{
|
||||
vm.Body = $"New version {Version} released!";
|
||||
vm.ActionLink = $"https://github.com/btcpayserver/btcpayserver/releases/tag/v{Version}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user