Пример #1
0
 public static Precise4GView ConstructView(PreciseCoverage4G stat, IENodebRepository repository)
 {
     var view = Mapper.Map<PreciseCoverage4G, Precise4GView>(stat);
     var eNodeb = repository.GetByENodebId(stat.CellId);
     view.ENodebName = eNodeb?.Name;
     return view;
 }
Пример #2
0
 public Precise4GView GetOneWeekStats(int cellId, byte sectorId, DateTime date)
 {
     var begin = date.AddDays(-7);
     var end = date;
     var stats = GetTimeSpanStats(cellId, sectorId, begin, end).ToArray();
     var sumStat = new PreciseCoverage4G
     {
         CellId = cellId,
         SectorId = sectorId,
         FirstNeighbors = stats.Sum(q => q.FirstNeighbors),
         SecondNeighbors = stats.Sum(q => q.SecondNeighbors),
         ThirdNeighbors = stats.Sum(q => q.ThirdNeighbors),
         TotalMrs = stats.Sum(q => q.TotalMrs)
     };
     return Precise4GView.ConstructView(sumStat, _eNodebRepository);
 }