Class UserStatsDTO

java.lang.Object
webb.shared.dtos.user.UserStatsDTO

public class UserStatsDTO extends Object
  • Constructor Details

    • UserStatsDTO

      public UserStatsDTO(long maxSolveTime, long minSolveTime, long avgSolveTime, int puzzlesComplete, int puzzlesUntilNextTitle, String currentTitle)
      Creates a new UserStats object
      Parameters:
      maxSolveTime - the maximum solve time of the usser in ms
      minSolveTime - the minimum solve time of the user in ms
      avgSolveTime - the average solve time of the user in ms
      puzzlesComplete - the number of puzzles completed by the user
      puzzlesUntilNextTitle - the number of puzzles until the user gets the next title
      currentTitle - the current title of the user
  • Method Details

    • getMaxSolveTime

      public long getMaxSolveTime()
      Returns:
      the maximum solve time of the user in ms
    • getMinSolveTime

      public long getMinSolveTime()
      Returns:
      the minimum solve time of the user in ms
    • getAvgSolveTime

      public long getAvgSolveTime()
      Returns:
      the average solve time of the user in ms
    • getPuzzlesComplete

      public int getPuzzlesComplete()
      Returns:
      the number of puzzles completed by the user
    • getPuzzlesUntilNextTitle

      public int getPuzzlesUntilNextTitle()
      Returns:
      the number of puzzles until the user gets the next title
    • getCurrentTitle

      public String getCurrentTitle()
      Returns:
      the current title of the user