Exemplo n.º 1
0
        public static IFeeder GetFeeder(FeederSourceSystem source)
        {
            switch (source)
            {
            case FeederSourceSystem.GOOGLE:
            {
                return(new GoogleFinanceFeeder());
            }

            case FeederSourceSystem.FAKEMARKET:
            {
                return(new FakeMarketFeeder());
            }

            case FeederSourceSystem.YAHOO:
            {
                return(new YahooFinanceFeeder());
            }

            default:
            {
                return(new GoogleFinanceFeeder());
            }
            }
        }
Exemplo n.º 2
0
 public static IFeeder GetFeeder(FeederSourceSystem source)
 {
     switch (source)
     {
         case FeederSourceSystem.GOOGLE:
             {
                 return new GoogleFinanceFeeder();
             }
         case FeederSourceSystem.FAKEMARKET:
             {
                 return new FakeMarketFeeder();
             }
         case FeederSourceSystem.YAHOO:
             {
                 return new YahooFinanceFeeder();
             }
         default:
             {
                 return new GoogleFinanceFeeder();
             }
     }
 }