summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/jsonobjects
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-04-12 23:17:26 +1000
committerGitHub <noreply@github.com>2024-04-12 15:17:26 +0200
commit7960d2ad27ac68ea9dcfaf848bd611b13db0af87 (patch)
treea875bcc3b55c501d27cdcbfa6d7af1260556efab /src/main/java/at/hannibal2/skyhanni/data/jsonobjects
parent30b0321f8c7de975375252c7a49b03baa605db6f (diff)
downloadskyhanni-7960d2ad27ac68ea9dcfaf848bd611b13db0af87.tar.gz
skyhanni-7960d2ad27ac68ea9dcfaf848bd611b13db0af87.tar.bz2
skyhanni-7960d2ad27ac68ea9dcfaf848bd611b13db0af87.zip
Backend: Update farming weight api links and format (#1308)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/jsonobjects')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/EliteBotJson.kt20
1 files changed, 18 insertions, 2 deletions
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<WeightProfile>
)
@@ -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<CropType, Double>,
+ @Expose val bonusWeight: Map<String, Int>,
+ @Expose val uncountedCrops: Map<CropType, Int>,
+ @Expose val pests: Map<PestType, Int>
)
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<CropType, Double>,
+ @Expose val pests: PestWeightData
+)
+
+data class PestWeightData(
+ @Expose val brackets: Map<Int, Int>,
+ @Expose @SerializedName("values") val pestWeights: Map<PestType, Map<Int, Double>>
+)