public GenderInformation GetGenderInformation(int projectId) { using (this.unitOfWorkProvider.CreateUnitOfWork()) { CategorialValue categories = this.statisticsProvider.GetGenderInformation(projectId); return(GenderInformation.Create(categories)); } }
public GenderInformation GetGenderInformationActiveUsers(int projectId, long filterCode) { using (this.unitOfWorkProvider.CreateUnitOfWork()) { var vkGroup = this.projectRepository.GetVkGroup(projectId); var filteringResult = this.GetFilteringResult(vkGroup, filterCode); CategorialValue categories = this.searcher.GetGenderInformationActiveUsers(vkGroup.Id, filteringResult); return(GenderInformation.Create(categories)); } }
public GenderInformation GetGenderInformationActiveUsers(int projectId, IList <ActiveUserInfo> users) { IList <MemberMainInfo> members = this.ToMemberMainInfo(users); using (this.unitOfWorkProvider.CreateUnitOfWork()) { var vkGroup = this.projectRepository.GetVkGroup(projectId); var filteringResult = new AudienceFilteringResult(members); CategorialValue categories = this.searcher.GetGenderInformationActiveUsers(vkGroup.Id, filteringResult); return(GenderInformation.Create(categories)); } }
private PieChartData GetPieChartData(GenderInformation genderInformation) { PieChartData pieChartData = new PieChartData(); pieChartData.AddItem(new PieChartDataItem() { Label = "Мужчины", Value = genderInformation.Males }); pieChartData.AddItem(new PieChartDataItem() { Label = "Женщины", Value = genderInformation.Females }); pieChartData.AddItem(new PieChartDataItem() { Label = "Не указано", Value = genderInformation.Unknown }); return(pieChartData); }
public PieChartData GetPieChartDataActiveUsers(int projectId, IList <ActiveUserInfo> userList) { GenderInformation genderInformation = this.searchService.GetGenderInformationActiveUsers(projectId, userList); return(this.GetPieChartData(genderInformation)); }
public PieChartData GetPieChartDataActiveUsers(int projectId, long filterCode) { GenderInformation genderInformation = this.searchService.GetGenderInformationActiveUsers(projectId, filterCode); return(this.GetPieChartData(genderInformation)); }
public PieChartData GetPieChartData(int projectId) { GenderInformation genderInformation = this.statisticsProvider.GetGenderInformation(projectId); return(this.GetPieChartData(genderInformation)); }