2017-12-17 06:17:42 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-01-07 18:36:41 +01:00
|
|
|
|
using BTCPayServer.HostedServices;
|
2017-12-17 06:17:42 +01:00
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Events
|
|
|
|
|
{
|
|
|
|
|
public class NBXplorerStateChangedEvent
|
|
|
|
|
{
|
2019-05-29 11:43:50 +02:00
|
|
|
|
public NBXplorerStateChangedEvent(BTCPayNetworkBase network, NBXplorerState old, NBXplorerState newState)
|
2017-12-17 06:17:42 +01:00
|
|
|
|
{
|
2018-01-07 18:36:41 +01:00
|
|
|
|
Network = network;
|
2017-12-17 06:17:42 +01:00
|
|
|
|
NewState = newState;
|
|
|
|
|
OldState = old;
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-29 11:43:50 +02:00
|
|
|
|
public BTCPayNetworkBase Network { get; set; }
|
2017-12-17 06:17:42 +01:00
|
|
|
|
public NBXplorerState NewState { get; set; }
|
|
|
|
|
public NBXplorerState OldState { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2018-01-07 18:36:41 +01:00
|
|
|
|
return $"NBXplorer {Network.CryptoCode}: {OldState} => {NewState}";
|
2017-12-17 06:17:42 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|