mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
27 lines
723 B
C#
27 lines
723 B
C#
using BTCPayServer.Data;
|
|
using BTCPayServer.Models.NotificationViewModels;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Services.Notifications.Blobs
|
|
{
|
|
[Notification("newversion")]
|
|
internal class NewVersionNotification : BaseNotification
|
|
{
|
|
public NewVersionNotification()
|
|
{
|
|
|
|
}
|
|
public NewVersionNotification(string version)
|
|
{
|
|
Version = version;
|
|
}
|
|
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}";
|
|
}
|
|
}
|
|
}
|