From 7960d2ad27ac68ea9dcfaf848bd611b13db0af87 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Fri, 12 Apr 2024 23:17:26 +1000 Subject: Backend: Update farming weight api links and format (#1308) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/data/jsonobjects/other/EliteBotJson.kt | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/EliteBotJson.kt b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/EliteBotJson.kt index 3cdcfa512..2f2543f56 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/EliteBotJson.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/EliteBotJson.kt @@ -1,9 +1,11 @@ package at.hannibal2.skyhanni.data.jsonobjects.other +import at.hannibal2.skyhanni.features.garden.CropType +import at.hannibal2.skyhanni.features.garden.pests.PestType import com.google.gson.annotations.Expose import com.google.gson.annotations.SerializedName -data class EliteWeightJson( +data class ElitePlayerWeightJson( @Expose val selectedProfileId: String, @Expose val profiles: List ) @@ -11,7 +13,11 @@ data class EliteWeightJson( data class WeightProfile( @Expose val profileId: String, @Expose val profileName: String, - @Expose val totalWeight: Double + @Expose val totalWeight: Double, + @Expose val cropWeight: Map, + @Expose val bonusWeight: Map, + @Expose val uncountedCrops: Map, + @Expose val pests: Map ) data class EliteLeaderboardJson( @@ -28,3 +34,13 @@ data class UpcomingLeaderboardPlayer( @Expose @SerializedName("ign") val name: String, @Expose @SerializedName("amount") val weight: Double ) + +data class EliteWeightsJson( + @Expose val crops: Map, + @Expose val pests: PestWeightData +) + +data class PestWeightData( + @Expose val brackets: Map, + @Expose @SerializedName("values") val pestWeights: Map> +) -- cgit