mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 21:32:27 +01:00
5c61de3ae9
* Different icons for notifications Closes #2510. * Fix version appendix for SVG use attributes * Fix SVGUse TagHelper * Update icons
30 lines
864 B
C#
30 lines
864 B
C#
using System;
|
|
|
|
namespace BTCPayServer.Abstractions.Contracts
|
|
{
|
|
public abstract class BaseNotification
|
|
{
|
|
public abstract string Identifier { get; }
|
|
public abstract string NotificationType { get; }
|
|
}
|
|
|
|
public interface INotificationHandler
|
|
{
|
|
string NotificationType { get; }
|
|
Type NotificationBlobType { get; }
|
|
public (string identifier, string name)[] Meta { get; }
|
|
void FillViewModel(object notification, NotificationViewModel vm);
|
|
}
|
|
|
|
public class NotificationViewModel
|
|
{
|
|
public string Id { get; set; }
|
|
public string Identifier { get; set; }
|
|
public string Type { get; set; }
|
|
public DateTimeOffset Created { get; set; }
|
|
public string Body { get; set; }
|
|
public string ActionLink { get; set; }
|
|
public bool Seen { get; set; }
|
|
}
|
|
}
|