From 28ff69ceb8414bfa35dbd2f6a137124db702fe0d Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Mon, 21 Nov 2022 15:06:08 +0800 Subject: [PATCH] add playtime field to UserScore --- sekai-scores-db/build.gradle | 1 + src/main/java/cc/sukazyo/sekai_scores/UserScore.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sekai-scores-db/build.gradle b/sekai-scores-db/build.gradle index 5cc6ce0..f969a42 100644 --- a/sekai-scores-db/build.gradle +++ b/sekai-scores-db/build.gradle @@ -1,5 +1,6 @@ plugins { id 'java' + id 'java-library' } group 'cc.sukazyo' diff --git a/src/main/java/cc/sukazyo/sekai_scores/UserScore.java b/src/main/java/cc/sukazyo/sekai_scores/UserScore.java index 7e9f49f..d02a4de 100644 --- a/src/main/java/cc/sukazyo/sekai_scores/UserScore.java +++ b/src/main/java/cc/sukazyo/sekai_scores/UserScore.java @@ -1,9 +1,11 @@ package cc.sukazyo.sekai_scores; import javax.annotation.Nonnull; +import java.time.LocalDateTime; public record UserScore ( @Nonnull Song song, @Nonnull Difficulty difficulty, - @Nonnull ScoreBase score + @Nonnull ScoreBase score, + @Nonnull LocalDateTime playtime ) {}