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); } }
public void Draw(IGroupCoverRenderer groupCover) { try { groupCover.DrawPostsCount((long)_wallInfo.TotalCount); } catch (Exception ex) { _logger.LogError(ex, "Ошибка при отрисовке количества постов!"); } }
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); }
public void Draw(IGroupCoverRenderer groupCover) { try { if (_todayVisitorsAmount != null) groupCover.DrawTodayVisitorsAmount(_todayVisitorsAmount.Value); } catch (Exception ex) { _logger.LogError(ex, "Ошибка при отрисовке количества посетителей!"); } }
public async Task DrawAsync(IGroupCoverRenderer groupCover) { await Task.Run(() => Draw(groupCover)).ConfigureAwait(false); }
public void Draw(IGroupCoverRenderer groupCover) { groupCover.DrawQuote(_quote); }