Class UpdateUserPuzzleDTO
java.lang.Object
webb.shared.dtos.puzzle.user.update.UpdateUserPuzzleDTO
- Direct Known Subclasses:
UserPuzzleDTO
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserPuzzleDTO(boolean completed, long solveTime, List<CellDTO> placedMarkers, List<CellDTO> placedStars, int starsRemaining) Creates a new UpdateUserPuzzleDTO object -
Method Summary
Modifier and TypeMethodDescriptionlongintboolean
-
Constructor Details
-
UpdateUserPuzzleDTO
public UpdateUserPuzzleDTO(boolean completed, long solveTime, List<CellDTO> placedMarkers, List<CellDTO> placedStars, int starsRemaining) Creates a new UpdateUserPuzzleDTO object- Parameters:
completed- 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
-
isCompleted
public boolean isCompleted()- Returns:
- whether the puzzle has been completed
-
getSolveTime
public long getSolveTime()- Returns:
- the time it took to solve the puzzle in ms
-
getPlacedMarkers
- Returns:
- the list of markers placed on the puzzle
-
getPlacedStars
- Returns:
- the list of stars placed on the puzzle
-
getStarsRemaining
public int getStarsRemaining()- Returns:
- the number of stars remaining on the puzzle
-