Package webb.shared.dtos.user
Class UserStatsDTO
java.lang.Object
webb.shared.dtos.user.UserStatsDTO
-
Constructor Summary
ConstructorsConstructorDescriptionUserStatsDTO(long maxSolveTime, long minSolveTime, long avgSolveTime, int puzzlesComplete, int puzzlesUntilNextTitle, String currentTitle) Creates a new UserStats object -
Method Summary
Modifier and TypeMethodDescriptionlonglonglongintint
-
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 msminSolveTime- the minimum solve time of the user in msavgSolveTime- the average solve time of the user in mspuzzlesComplete- the number of puzzles completed by the userpuzzlesUntilNextTitle- the number of puzzles until the user gets the next titlecurrentTitle- 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
- Returns:
- the current title of the user
-