class HabitStatisticServiceImpl implements HabitStatisticService {

    @Override
    public List<HabitDto> findAllHabitsAndTheirStatistics(Long id, Boolean status, String language) {
        return findAllHabitsByStatus(id, status)
            .stream()
            .map(habit -> convertHabitToHabitDto(habit, language))
            .collect(Collectors.toList());
    }

    @Autowired public  HabitStatisticServiceImpl(HabitStatisticRepo habitStatisticRepo,
                                     HabitRepo habitRepo,
                                     HabitService habitService, ModelMapper modelMapper,
                                     DateService dateService);

}