using System.Collections.Generic; namespace Stocks { /// <summary> /// /// </summary> public class StockQuotes { /// <summary> /// /// </summary> private StockExchanges exchange; /// <summary> /// Gets or sets the exchange. /// </summary> /// <value> /// The exchange. /// </value> public StockExchanges Exchange { get { return exchange; } set { exchange = value; } } /// <summary> /// /// </summary> List<StockValue> updatedStockQuotes; /// <summary> /// Gets or sets the updated stock quotes. /// </summary> /// <value> /// The updated stock quotes. /// </value> public List<StockValue> UpdatedStockQuotes { get { return updatedStockQuotes; } set { updatedStockQuotes = value; } } /// <summary> /// /// </summary> public enum StockExchanges { Ftse, Dow, Dac, Cac } } /// <summary> /// /// </summary> public class StockValue { /// <summary> /// Initializes a new instance of the <see cref="StockValue"/> class. /// </summary> public StockValue() { } /// <summary> /// Initializes a new instance of the <see cref="StockValue"/> class. /// </summary> /// <param name="stockName">Name of the stock.</param> /// <param name="stockValue">The stock value.</param> public StockValue(string stockName, int stockValue) { Symbol = stockName; Value = stockValue; } /// <summary> /// Gets or sets the symbol. /// </summary> /// <value> /// The symbol. /// </value> public string Symbol { get; set; } /// <summary> /// Gets or sets the value. /// </summary> /// <value> /// The value. /// </value> public int Value { get; set; } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)