From 16f7b5060ef1df2043132bc9cd344692c218a49c Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Tue, 28 Sep 2021 06:00:19 -0230 Subject: I forgot to change streak data to have serialized names --- .../kotlin/tech/thatgravyboat/rewardclaim/types/StreakData.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/kotlin/tech/thatgravyboat/rewardclaim/types/StreakData.kt b/src/main/kotlin/tech/thatgravyboat/rewardclaim/types/StreakData.kt index ef7e6fc..7ecf908 100644 --- a/src/main/kotlin/tech/thatgravyboat/rewardclaim/types/StreakData.kt +++ b/src/main/kotlin/tech/thatgravyboat/rewardclaim/types/StreakData.kt @@ -1,3 +1,9 @@ package tech.thatgravyboat.rewardclaim.types -data class StreakData(val progress: Int, val current: Int, val highest: Int) \ No newline at end of file +import com.google.gson.annotations.SerializedName + +data class StreakData( + @SerializedName("value") val progress: Int, + @SerializedName("score") val current: Int, + @SerializedName("highScore") val highest: Int +) -- cgit