Uses of Record Class
org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
Packages that use ChallengeUpdateDTO
Package
Description
-
Uses of ChallengeUpdateDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller with parameters of type ChallengeUpdateDTOModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<ChallengeDTO> ChallengeController.updateChallenge
(Long id, ChallengeUpdateDTO challengeUpdateDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Updates a challenge -
Uses of ChallengeUpdateDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper with parameters of type ChallengeUpdateDTOModifier and TypeMethodDescriptionChallengeMapper.updateEntity
(Challenge challenge, ChallengeUpdateDTO challengeDTO) Updates a challenge entity using dto.default void
ChallengeMapper.updateType
(Challenge challenge, ChallengeUpdateDTO challengeDTO) Sets the type of challenge to null if DTO type is null -
Uses of ChallengeUpdateDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service with parameters of type ChallengeUpdateDTOModifier and TypeMethodDescriptionChallengeService.updateChallenge
(Long id, ChallengeUpdateDTO challengeUpdateDTO, User user) Updates an existing challenge with new data from a provided DTO if the challenge has not been completed.