Esempio n. 1
0
        public YahooProjectedPointsMessage Calculate(NFLPlayer p, NFLGame g)
        {
            if (yahooPipeline == null)
            {
                InitialiseThePipeLine();
            }

            var msg = new YahooProjectedPointsMessage {
                Player = p
            };

            if (g.IsBye())
            {
                return(msg);
            }

            msg.Player.Points = 0.0M;
            msg.Game          = g;

            if (yahooPipeline != null)
            {
                yahooPipeline.Execute(msg);
            }
            return(msg);
        }
Esempio n. 2
0
        public YahooProjectedPointsMessage Calculate( NFLPlayer p, NFLGame g )
        {
            if ( yahooPipeline == null ) InitialiseThePipeLine();

             var msg = new YahooProjectedPointsMessage { Player = p };
              if (g.IsBye()) return msg;

              msg.Player.Points = 0.0M;
              msg.Game = g;

              if (yahooPipeline != null) yahooPipeline.Execute( msg );
              return msg;
        }