Class UserPuzzleDTO


public class UserPuzzleDTO extends UpdateUserPuzzleDTO
  • 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 puzzle
      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

    • getId

      public int getId()
      Returns:
      the id of the puzzle