btcpayserver/BTCPayServer/Altcoins/Monero/RPC/MoneroEvent.cs
2019-09-30 20:43:15 +09:00

15 lines
547 B
C#

namespace BTCPayServer.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})";
}
}
}