Package webb.shared.dtos.puzzle.user
Class UserPuzzleDTO
java.lang.Object
webb.shared.dtos.puzzle.user.update.UpdateUserPuzzleDTO
webb.shared.dtos.puzzle.user.UserPuzzleDTO
-
Constructor Summary
ConstructorsConstructorDescriptionUserPuzzleDTO(int id, boolean completed, long solveTime, List<CellDTO> placedMarkers, List<CellDTO> placedStars, int starsRemaining) Creates a new UpdateUserPuzzleDTO object -
Method Summary
Methods inherited from class webb.shared.dtos.puzzle.user.update.UpdateUserPuzzleDTO
getPlacedMarkers, getPlacedStars, getSolveTime, getStarsRemaining, isCompleted
-
Constructor Details
-
UserPuzzleDTO
public UserPuzzleDTO(int id, boolean completed, long solveTime, List<CellDTO> placedMarkers, List<CellDTO> placedStars, int starsRemaining) Creates a new UpdateUserPuzzleDTO object- Parameters:
id- the id of the puzzlecompleted- whether the puzzle has been completedsolveTime- the time it took to solve the puzzle in msplacedMarkers- the list of markers placed on the puzzleplacedStars- the list of stars placed on the puzzlestarsRemaining- the number of stars remaining on the puzzle
-
-
Method Details
-
getId
public int getId()- Returns:
- the id of the puzzle
-