Example #1
0
        public Contracts.Models.FinanceDataProvider.PriceTarget ToDomainPriceTarget()
        {
            var model = new Contracts.Models.FinanceDataProvider.PriceTarget()
            {
                High   = TryParse(this.High),
                Low    = TryParse(this.Low),
                Mean   = TryParse(this.Mean),
                Median = TryParse(this.Mean)
            };

            return(model);
        }
Example #2
0
        public Contracts.Models.FinanceDataProvider.PriceTarget ToDomain()
        {
            var model = new Contracts.Models.FinanceDataProvider.PriceTarget()
            {
                High   = targetHigh,
                Low    = targetLow,
                Mean   = targetMean,
                Median = targetMedian,
            };

            return(model);
        }
Example #3
0
        public Contracts.Models.FinanceDataProvider.PriceTarget ToDomainPriceTarget()
        {
            var targetPrice = TryParse(data.target_price);

            var model = new Contracts.Models.FinanceDataProvider.PriceTarget()
            {
                High   = targetPrice,
                Low    = targetPrice,
                Mean   = targetPrice,
                Median = targetPrice
            };

            return(model);
        }