Beispiel #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;
 }
Beispiel #2
0
 public GUICurrencyTxAndBalanceHelper(IGUICurrency aParentGUICurrency)
 {
     FGUIParentCurrency = aParentGUICurrency;
 }
Beispiel #3
0
 public GUICurrencyMarketPriceHelper(IGUICurrency aGUICurrency)
 {
     FGUICurrency   = aGUICurrency;
     SymbolCurrency = null;
     SymbolFiat     = null;
 }
Beispiel #4
0
 public GUIToken(IGUICurrency aParentCurrency)
 {
     ParentCurrency     = aParentCurrency ?? throw new ArgumentNullException(nameof(aParentCurrency));
     FGUICurrencyHelper = new GUICurrencyTxAndBalanceHelper(this);
     FGUIPricesHelper   = new GUICurrencyMarketPriceHelper(this);
 }