diff options
author | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-09-28 06:00:19 -0230 |
---|---|---|
committer | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-09-28 06:00:19 -0230 |
commit | 16f7b5060ef1df2043132bc9cd344692c218a49c (patch) | |
tree | 39056f14d073fce441741cb2b3d7a4c8918703d9 | |
parent | 7a0f59195b169c7c10986a557058db67c4bd65ff (diff) | |
download | RewardClaim-16f7b5060ef1df2043132bc9cd344692c218a49c.tar.gz RewardClaim-16f7b5060ef1df2043132bc9cd344692c218a49c.tar.bz2 RewardClaim-16f7b5060ef1df2043132bc9cd344692c218a49c.zip |
I forgot to change streak data to have serialized names
-rw-r--r-- | src/main/kotlin/tech/thatgravyboat/rewardclaim/types/StreakData.kt | 8 |
1 files changed, 7 insertions, 1 deletions
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 +) |