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); }
public AddActualYahooKickingPoints(YahooProjectedPointsMessage input) { #if DEBUG2 Utility.Announce(string.Format("Calculating Kicking Points for {0} Game {1}", input.Player.PlayerNameShort, input.Game.GameName())); #endif Process(input); }
public AddActualYahooKickingPoints(YahooProjectedPointsMessage input) { #if DEBUG Utility.Announce(string.Format("Calculating Kicking Points for {0} Game {1}", input.Player.PlayerNameShort, input.Game.GameName())); #endif Process(input); }
public AddYahooKickingPoints(YahooProjectedPointsMessage input) { #if DEBUG Utility.Announce( $@"Calculating Kicking Points for { input.Player.PlayerNameShort } Game {input.Game.GameName()}"); #endif if (input.Player.PlayerCat.Equals(Constants.K_KICKER_CAT)) { Process(input); } }
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; }
private static void Process(YahooProjectedPointsMessage input) { input.Player.Points += input.PlayerGameMetrics.ProjFG * 3; #if DEBUG Utility.Announce($"Projected FG = {input.PlayerGameMetrics.ProjFG} * 3 = {input.PlayerGameMetrics.ProjFG * 3}"); #endif input.Player.Points += input.PlayerGameMetrics.ProjPat * 1; #if DEBUG Utility.Announce($"Projected Pat = {input.PlayerGameMetrics.ProjPat} * 1 = {input.PlayerGameMetrics.ProjPat * 1}"); #endif #if DEBUG Utility.Announce($"Projected FP = {input.Player.Points}"); #endif }
private static void Process(YahooProjectedPointsMessage input) { input.Player.Points += input.PlayerGameMetrics.FG * 3; #if DEBUG2 Utility.Announce(string.Format("FG = {0} * 3 = {1}", input.PlayerGameMetrics.FG, input.PlayerGameMetrics.FG * 3)); #endif input.Player.Points += input.PlayerGameMetrics.Pat * 1; #if DEBUG Utility.Announce(string.Format("Projected Pat = {0} * 1 = {1}", input.PlayerGameMetrics.Pat, input.PlayerGameMetrics.Pat * 1)); #endif #if DEBUG Utility.Announce(string.Format("FP = {0}", input.Player.Points)); #endif }
private static void Process(YahooProjectedPointsMessage input) { input.Player.Points += input.PlayerGameMetrics.FG * 3; #if DEBUG Utility.Announce(string.Format("FG = {0} * 3 = {1}", input.PlayerGameMetrics.FG, input.PlayerGameMetrics.FG * 3)); #endif input.Player.Points += input.PlayerGameMetrics.Pat * 1; #if DEBUG Utility.Announce(string.Format("Projected Pat = {0} * 1 = {1}", input.PlayerGameMetrics.Pat, input.PlayerGameMetrics.Pat * 1)); #endif #if DEBUG Utility.Announce(string.Format("FP = {0}", input.Player.Points)); #endif }