mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 15:41:29 +01:00
* BTCPay Server Extensions  * cleanup * fix * Polish UI a bit,detect when docker deployment
27 lines
901 B
C#
27 lines
901 B
C#
using BTCPayServer.Contracts;
|
|
using BTCPayServer.Models.NotificationViewModels;
|
|
|
|
namespace BTCPayServer.Services.Notifications.Blobs
|
|
{
|
|
internal class NewVersionNotification
|
|
{
|
|
internal class Handler : NotificationHandler<NewVersionNotification>
|
|
{
|
|
public override string NotificationType => "newversion";
|
|
protected override void FillViewModel(NewVersionNotification notification, NotificationViewModel vm)
|
|
{
|
|
vm.Body = $"New version {notification.Version} released!";
|
|
vm.ActionLink = $"https://github.com/btcpayserver/btcpayserver/releases/tag/v{notification.Version}";
|
|
}
|
|
}
|
|
public NewVersionNotification()
|
|
{
|
|
|
|
}
|
|
public NewVersionNotification(string version)
|
|
{
|
|
Version = version;
|
|
}
|
|
public string Version { get; set; }
|
|
}
|
|
}
|