public static List <NewJumpStartOverAllStatsCsvResult> Create(NewJumpStartOverAllStats stats) { var result = new List <NewJumpStartOverAllStatsCsvResult>(); result.AddRange(stats.Users.Select(item => new NewJumpStartOverAllStatsCsvResult(NewJumpStartOverAllStatsTypeCsvResult.User, item))); result.AddRange(stats.Opens.Select(item => new NewJumpStartOverAllStatsCsvResult(NewJumpStartOverAllStatsTypeCsvResult.Open, item))); result.AddRange(stats.Clicks.Select(item => new NewJumpStartOverAllStatsCsvResult(NewJumpStartOverAllStatsTypeCsvResult.Click, item))); foreach (var tagStat in stats.Tags) { result.AddRange(tagStat.Stats.Select(item => new NewJumpStartOverAllStatsCsvResult(NewJumpStartOverAllStatsTypeCsvResult.Tag, item, tagStat.Tag))); } return(result); }
//public List<JumpStartHeatMapResult> HeatMap { get; set; } = new List<JumpStartHeatMapResult>(); public NewJumpStartOverAllStatsResult(NewJumpStartOverAllStats newJumpStartOverAllStats) : base(newJumpStartOverAllStats) { Tags = newJumpStartOverAllStats.Tags.Select(item => new JumpStartDailyTagStatsResult(item)).ToList(); }