btcpayserver/BTCPayServer/Services/Altcoins/Monero/RPC/MoneroEvent.cs
2020-07-28 22:48:51 +02:00

17 lines
593 B
C#

#if ALTCOINS_RELEASE || DEBUG
namespace BTCPayServer.Services.Altcoins.Monero.RPC
{
public class MoneroEvent
{
public string BlockHash { get; set; }
public string TransactionHash { get; set; }
public string CryptoCode { get; set; }
public override string ToString()
{
return
$"{CryptoCode}: {(string.IsNullOrEmpty(TransactionHash) ? string.Empty : "Tx Update")}{(string.IsNullOrEmpty(BlockHash) ? string.Empty : "New Block")} ({TransactionHash ?? string.Empty}{BlockHash ?? string.Empty})";
}
}
}
#endif