using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace InvExplorer.Web
{
    /// <summary>
    /// Represents a Stock or Fund.
    /// (Auto-generated, extensible)
    /// </summary>
    public partial class Asset
    {
        /// <summary>
        /// Gets or sets the symbol that identifies this asset.
        /// </summary>
        public string Symbol { get; set; }
        /// <summary>
        /// Gets or sets the name of this asset.
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// Gets or sets the type of this asset (Stock, Fund).
        /// </summary>
        public AssetType AssetType { get; set; }
        /// <summary>
        /// Gets or sets the last price this asset was traded at.
        /// </summary>
        public double LastPrice { get; set; }
        /// <summary>
        /// Gets or sets the change between the last price and the previous price.
        /// </summary>
        public double Change { get; set; }
    }
    public enum AssetType
    {
        Stock,
        Fund
    };
}