btcpayserver/BTCPayServer/Services/Altcoins/Zcash/RPC/ZcashEvent.cs
hhanh00 f4153ade92
Zcash integration (#3400)
* zcash

* Use Channel instead of Queue
2022-02-14 17:04:34 +09:00

17 lines
574 B
C#

#if ALTCOINS
namespace BTCPayServer.Services.Altcoins.Zcash.RPC
{
public class ZcashEvent
{
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