示例#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;
            }
        }