Moving Notification to dedicated Service namespace

This commit is contained in:
rockstardev
2020-06-14 23:47:11 -05:00
parent 342f63a625
commit 0dab96f0a6
8 changed files with 11 additions and 13 deletions

View File

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