aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/sowgro/npehero/levelapi/LeaderboardEntry.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/sowgro/npehero/levelapi/LeaderboardEntry.java')
-rwxr-xr-xsrc/main/java/net/sowgro/npehero/levelapi/LeaderboardEntry.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/net/sowgro/npehero/levelapi/LeaderboardEntry.java b/src/main/java/net/sowgro/npehero/levelapi/LeaderboardEntry.java
new file mode 100755
index 0000000..2b98a29
--- /dev/null
+++ b/src/main/java/net/sowgro/npehero/levelapi/LeaderboardEntry.java
@@ -0,0 +1,24 @@
+package net.sowgro.npehero.levelapi;
+
+/**
+ * Represents one players score in the leaderboard
+ */
+public class LeaderboardEntry
+{
+ public final int score;
+ public final String name;
+ public final String date;
+
+ /**
+ * Create a new LeaderboardEntry
+ * @param name The name the player input after completing the level
+ * @param score The score the player earned
+ * @param date The date the player earned this score
+ */
+ public LeaderboardEntry(String name, int score, String date)
+ {
+ this.name = name;
+ this.score = score;
+ this.date = date;
+ }
+}