2020-08-19 13:31:28 +02:00
|
|
|
#if DEBUG
|
2020-10-20 13:09:09 +02:00
|
|
|
using System.Data;
|
2020-11-17 13:46:23 +01:00
|
|
|
using BTCPayServer.Abstractions.Contracts;
|
2020-08-19 13:31:28 +02:00
|
|
|
|
|
|
|
namespace BTCPayServer.Services.Notifications.Blobs
|
|
|
|
{
|
2020-10-20 13:09:09 +02:00
|
|
|
internal class JunkNotification: BaseNotification
|
2020-08-19 13:31:28 +02:00
|
|
|
{
|
2020-10-20 13:09:09 +02:00
|
|
|
private const string TYPE = "junk";
|
2020-08-19 13:31:28 +02:00
|
|
|
internal class Handler : NotificationHandler<JunkNotification>
|
|
|
|
{
|
2020-10-20 13:09:09 +02:00
|
|
|
public override string NotificationType => TYPE;
|
|
|
|
public override (string identifier, string name)[] Meta
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return new (string identifier, string name)[] {(TYPE, "Junk")};
|
|
|
|
}
|
|
|
|
}
|
2020-08-19 13:31:28 +02:00
|
|
|
|
|
|
|
protected override void FillViewModel(JunkNotification notification, NotificationViewModel vm)
|
|
|
|
{
|
|
|
|
vm.Body = $"All your junk r belong to us!";
|
|
|
|
}
|
|
|
|
}
|
2020-10-20 13:09:09 +02:00
|
|
|
|
|
|
|
public override string Identifier => NotificationType;
|
|
|
|
public override string NotificationType => TYPE;
|
2020-08-19 13:31:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|