mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
24 lines
657 B
C#
24 lines
657 B
C#
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}";
|
|
}
|
|
}
|
|
}
|