コード例 #1
0
 public GUIToken(IClientCurrencyToken aToken, IGUICurrency aParentCurrency) : this(aParentCurrency)
 {
     Id              = (aToken?.Id ?? throw new ArgumentNullException(nameof(aToken))) > 0 ? throw new ArgumentOutOfRangeException(nameof(aToken), "Token ID must be negative") : aToken.Id;
     Name            = aToken.Name;
     Ticker          = aToken.Ticker;
     Precision       = aToken.Precision;
     Icon            = aToken.Icon;
     ContractAddress = aToken.ContractAddress;
 }
コード例 #2
0
 public GUICurrencyTxAndBalanceHelper(IGUICurrency aParentGUICurrency)
 {
     FGUIParentCurrency = aParentGUICurrency;
 }
コード例 #3
0
 public GUICurrencyMarketPriceHelper(IGUICurrency aGUICurrency)
 {
     FGUICurrency   = aGUICurrency;
     SymbolCurrency = null;
     SymbolFiat     = null;
 }
コード例 #4
0
 public GUIToken(IGUICurrency aParentCurrency)
 {
     ParentCurrency     = aParentCurrency ?? throw new ArgumentNullException(nameof(aParentCurrency));
     FGUICurrencyHelper = new GUICurrencyTxAndBalanceHelper(this);
     FGUIPricesHelper   = new GUICurrencyMarketPriceHelper(this);
 }