Пример #1
0
 public void Draw(IGroupCoverRenderer groupCover)
 {
     groupCover.DrawTopLikersHeader($"ТОП-лайкеры за {_lastDays} дней:");
     for (var i = 0; i < _list.Count; i++)
     {
         var item = _list[i];
         groupCover.DrawTopLiker(item.FullNames, item.LikesAmount, i + 1);
         groupCover.DrawTopLikerAvatar(item.Avatar, i + 1);
     }
 }
Пример #2
0
 public void Draw(IGroupCoverRenderer groupCover)
 {
     try
     {
         groupCover.DrawPostsCount((long)_wallInfo.TotalCount);
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "Ошибка при отрисовке количества постов!");
     }
 }
Пример #3
0
 public void Draw(IGroupCoverRenderer groupCover)
 {
     groupCover.DrawWeatherIcon(_weather.Image);
     _weather.Image.Dispose();
     groupCover.DrawTemperature(_weather.Temperature);
     groupCover.DrawWindSpeed(_weather.WindSpeed);
     groupCover.DrawWindArrow(_weather.WindDegree);
     groupCover.DrawSunImage();
     groupCover.DrawSunStatus(_weather.SunSet, _weather.SunRise);
     groupCover.DrawCloudnessImage();
     groupCover.DrawCloudnessStatus(_weather.Cloudiness);
 }
Пример #4
0
 public void Draw(IGroupCoverRenderer groupCover)
 {
     try
     {
         if (_todayVisitorsAmount != null)
             groupCover.DrawTodayVisitorsAmount(_todayVisitorsAmount.Value);
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "Ошибка при отрисовке количества посетителей!");
     }
 }
Пример #5
0
 public async Task DrawAsync(IGroupCoverRenderer groupCover)
 {
     await Task.Run(() => Draw(groupCover)).ConfigureAwait(false);
 }
Пример #6
0
 public void Draw(IGroupCoverRenderer groupCover)
 {
     groupCover.DrawQuote(_quote);
 }