mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 14:50:50 +01:00
19 lines
604 B
C#
19 lines
604 B
C#
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}";
|
|
}
|
|
}
|
|
}
|