2017-12-17 14:17:42 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-01-08 02:36:41 +09:00
|
|
|
|
using BTCPayServer.HostedServices;
|
2017-12-17 14:17:42 +09:00
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Events
|
|
|
|
|
{
|
|
|
|
|
public class NBXplorerStateChangedEvent
|
|
|
|
|
{
|
2018-01-08 02:36:41 +09:00
|
|
|
|
public NBXplorerStateChangedEvent(BTCPayNetwork network, NBXplorerState old, NBXplorerState newState)
|
2017-12-17 14:17:42 +09:00
|
|
|
|
{
|
2018-01-08 02:36:41 +09:00
|
|
|
|
Network = network;
|
2017-12-17 14:17:42 +09:00
|
|
|
|
NewState = newState;
|
|
|
|
|
OldState = old;
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-08 02:36:41 +09:00
|
|
|
|
public BTCPayNetwork Network { get; set; }
|
2017-12-17 14:17:42 +09:00
|
|
|
|
public NBXplorerState NewState { get; set; }
|
|
|
|
|
public NBXplorerState OldState { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2018-01-08 02:36:41 +09:00
|
|
|
|
return $"NBXplorer {Network.CryptoCode}: {OldState} => {NewState}";
|
2017-12-17 14:17:42 +09:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|