Uses of Class
edu.ntnu.idatt2106_2023_06.backend.model.stats.Statistics
Packages that use Statistics
Package
Description
-
Uses of Statistics in edu.ntnu.idatt2106_2023_06.backend.mapper
Methods in edu.ntnu.idatt2106_2023_06.backend.mapper that return StatisticsModifier and TypeMethodDescriptionstatic Statistics
StatMapper.toStatistics
(StatAddItemToFridgeDTO statAddItemToFridgeDTO, User user, Fridge fridge, StatType statType) Converts StatAddItemToFridgeDTO to a Statistics model.Methods in edu.ntnu.idatt2106_2023_06.backend.mapper that return types with arguments of type StatisticsModifier and TypeMethodDescriptionstatic List<Statistics>
StatMapper.toStatistics
(StatDeleteFromFridgeDTO statDeleteFromFridgeDTO, User user, Fridge fridge, StatType statType1) Converts StatDeleteFromFridgeDTO to a list of Statistics models. -
Uses of Statistics in edu.ntnu.idatt2106_2023_06.backend.repo.stat
Methods in edu.ntnu.idatt2106_2023_06.backend.repo.stat that return types with arguments of type StatisticsModifier and TypeMethodDescriptionStatRepository.findAllByFridge
(Long fridgeId) Find all statistics by fridge ID.StatRepository.findAllByFridgeAndStatType
(Long fridgeId, Long statTypeId) StatRepository.findAllByUser
(User user) Find all statistics by user ID.StatRepository.findAllByUserAndStatType
(Long userId, Long statTypeId)