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