aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-02 23:01:09 +0200
committernea <nea@nea.moe>2023-06-02 23:01:09 +0200
commitf2eb8c4dc898336f1ee44e62e18b4a7406464736 (patch)
tree50af6c0e91306e2d5882b8407ff2028d91863585 /src/main/kotlin/moe/nea/firmament/apis/Profiles.kt
parentf249df8f67114b14e3d75a955ace1d28ba6cb937 (diff)
downloadfirmament-f2eb8c4dc898336f1ee44e62e18b4a7406464736.tar.gz
firmament-f2eb8c4dc898336f1ee44e62e18b4a7406464736.tar.bz2
firmament-f2eb8c4dc898336f1ee44e62e18b4a7406464736.zip
Add more caching and fix some models
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/apis/Profiles.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/apis/Profiles.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt b/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt
index 4fd5704..7132147 100644
--- a/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt
+++ b/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt
@@ -21,7 +21,7 @@ import moe.nea.firmament.util.json.InstantAsLongSerializer
@Serializable
data class Profiles(
val success: Boolean,
- val profiles: List<Profile>
+ val profiles: List<Profile>?
)
@Serializable
@@ -120,12 +120,12 @@ data class PlayerResponse(
data class PlayerData(
val uuid: UUID,
val firstLogin: Instant,
- val lastLogin: Instant,
+ val lastLogin: Instant? = null,
@SerialName("playername")
val playerName: String,
val achievementsOneTime: List<String> = listOf(),
@SerialName("newPackageRank")
- val packageRank: String?,
+ val packageRank: String? = null,
val monthlyPackageRank: String? = null,
val rankPlusColor: String = "GOLD"
) {