using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MarketData.MarketDataModel;

namespace TradeBlotter.Model
{
  public class ETFHoldingModel
  {
    private ETFHolding etfHolding;

    public ETFHoldingModel(ETFHolding etfHolding)
    {
      this.etfHolding=etfHolding;
    }
    public String ETFHoldingSymbol
    {
      get{return etfHolding.ETFSymbol;}
    }
    public String HoldingSymbol
    {
      get
      {
        String symbolNoExchange = etfHolding.HoldingSymbol;
        if (symbolNoExchange.Contains(".")) symbolNoExchange = symbolNoExchange.Split('.')[0];
        return symbolNoExchange;
      }
    }
    public String HoldingSymbolShareClass
    {
      get{return etfHolding.HoldingSymbolShareClass;}
    }
    public String HoldingCompanyName
    {
      get{return etfHolding.HoldingCompanyName;}
    }
    public double PercentOfAssets
    {
      get{return etfHolding.PercentOfAssets;}
    }
  }
}
