From 4f3309f1f2d17e3cde4544dc9f6325b0d9bfd721 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sat, 24 Feb 2024 10:17:22 +1100 Subject: Make hypixel items api response a proper json object #1039 --- .../data/jsonobjects/other/SkyblockItemsDataJson.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/SkyblockItemsDataJson.kt (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/SkyblockItemsDataJson.kt b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/SkyblockItemsDataJson.kt new file mode 100644 index 000000000..0676a5e8e --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/SkyblockItemsDataJson.kt @@ -0,0 +1,14 @@ +package at.hannibal2.skyhanni.data.jsonobjects.other + +import com.google.gson.annotations.Expose +import com.google.gson.annotations.SerializedName + +data class SkyblockItemsDataJson( + @Expose val items: List +) + +data class SkyblockItemData( + @Expose val id: String?, + @Expose @SerializedName("npc_sell_price") val npcPrice: Double?, + @Expose @SerializedName("motes_sell_price") val motesPrice: Double? +) -- cgit