void ShowPlan(IForecastPlanModel plan) { plan.ForecastData.ForEach(i => { Console.WriteLine($"{i.PeriodRange} [{i.ForecastNo}] {i.LastPeriod} {i.DrawNo} {i.ChaseTimes} [{i.IsWin}]"); }); }
public MailNotifyModel(LotteryType lottery, int rule, Plan plan, IForecastPlanModel forecastPlan, string partnerForecastNo) { Lottery = lottery.ToStringName(); Rule = rule.ToStringName(lottery); Plan = plan; ForecastPlan = forecastPlan; CurrentPeriod = ForecastPlan.ForecastData.LastOrDefault(); PassedPeriod = ForecastPlan.ForecastData.Take(ForecastPlan.ForecastData.Count - 1); PartnerForecastNo = partnerForecastNo; }