Package webb.shared.dtos.leaderboard
Class LeaderboardEntryDTO
java.lang.Object
webb.shared.dtos.leaderboard.LeaderboardEntryDTO
- All Implemented Interfaces:
Comparable<LeaderboardEntryDTO>
-
Constructor Summary
ConstructorsConstructorDescriptionLeaderboardEntryDTO(String username, int completedPuzzles) Create a leaderboard entry object -
Method Summary
Modifier and TypeMethodDescriptionintSorts by completed puzzles highest to lowest Tiebreaker is alphabetical orderint
-
Constructor Details
-
LeaderboardEntryDTO
Create a leaderboard entry object- Parameters:
username- of the personcompletedPuzzles- number of puzzles they have created
-
-
Method Details
-
getUsername
- Returns:
- the username of the user
-
getCompletedPuzzles
public int getCompletedPuzzles()- Returns:
- the amount of puzzles they have finished
-