mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
d3e3c31b0c
* BitcoinSpecificBtcPayNetwork - abstract BTCPayNetwork * some type fixes * fix tests * simplify fetching handler in invoice controller * rename network base and bitcoin classes * abstract serializer to network level * fix serializer when network not provided * fix serializer when network not provided * fix serializer when network not provided * try fixes for isolating pull request
28 lines
757 B
C#
28 lines
757 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.HostedServices;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class NBXplorerStateChangedEvent
|
|
{
|
|
public NBXplorerStateChangedEvent(BTCPayNetworkBase network, NBXplorerState old, NBXplorerState newState)
|
|
{
|
|
Network = network;
|
|
NewState = newState;
|
|
OldState = old;
|
|
}
|
|
|
|
public BTCPayNetworkBase Network { get; set; }
|
|
public NBXplorerState NewState { get; set; }
|
|
public NBXplorerState OldState { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"NBXplorer {Network.CryptoCode}: {OldState} => {NewState}";
|
|
}
|
|
}
|
|
}
|