Class UpdateUserPuzzleDTO

java.lang.Object
webb.shared.dtos.puzzle.user.update.UpdateUserPuzzleDTO
Direct Known Subclasses:
UserPuzzleDTO

public class UpdateUserPuzzleDTO extends Object
  • 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 completed
      solveTime - the time it took to solve the puzzle in ms
      placedMarkers - the list of markers placed on the puzzle
      placedStars - the list of stars placed on the puzzle
      starsRemaining - 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

      public List<CellDTO> getPlacedMarkers()
      Returns:
      the list of markers placed on the puzzle
    • getPlacedStars

      public List<CellDTO> getPlacedStars()
      Returns:
      the list of stars placed on the puzzle
    • getStarsRemaining

      public int getStarsRemaining()
      Returns:
      the number of stars remaining on the puzzle