예제 #1
0
        public async void GetQuotesForSymbols(string symbols)
        {
            var request = new StockQuoteRequest();
            var message = await request.RequestStockQuotes(symbols);

            QuoteList = message.Quotes;
        }
예제 #2
0
        public async void GetQuotesForSymbols(string symbols)
        {
            var request = new StockQuoteRequest();
            var message = await request.RequestStockQuotes(symbols);

            QuoteList = message.Quotes.Select(quote => quote.Name).ToList();
        }
예제 #3
0
        public async void GetQuotesForSymbols(string symbols)
        {
            if (!string.IsNullOrWhiteSpace(symbols))
            {
                var request = new StockQuoteRequest();
                var message = await request.RequestStockQuotes(symbols);

                QuoteList = message.Quotes;
            }
        }