diff options
author | nea <nea@nea.moe> | 2023-06-02 23:01:09 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-02 23:01:09 +0200 |
commit | f2eb8c4dc898336f1ee44e62e18b4a7406464736 (patch) | |
tree | 50af6c0e91306e2d5882b8407ff2028d91863585 /src/main/kotlin/moe/nea/firmament/apis/Profiles.kt | |
parent | f249df8f67114b14e3d75a955ace1d28ba6cb937 (diff) | |
download | firmament-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.kt | 6 |
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" ) { |