aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-02-24 10:17:22 +1100
committerGitHub <noreply@github.com>2024-02-24 00:17:22 +0100
commit4f3309f1f2d17e3cde4544dc9f6325b0d9bfd721 (patch)
tree78afbbcfeb7c7066a8522cf68b8dc714b29ad765 /src/main/java/at/hannibal2/skyhanni/data
parent8eac8a1a23221590d6bfb2a8ff918d9318661ef6 (diff)
downloadskyhanni-4f3309f1f2d17e3cde4544dc9f6325b0d9bfd721.tar.gz
skyhanni-4f3309f1f2d17e3cde4544dc9f6325b0d9bfd721.tar.bz2
skyhanni-4f3309f1f2d17e3cde4544dc9f6325b0d9bfd721.zip
Make hypixel items api response a proper json object #1039
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/SkyblockItemsDataJson.kt14
1 files changed, 14 insertions, 0 deletions
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<SkyblockItemData>
+)
+
+data class SkyblockItemData(
+ @Expose val id: String?,
+ @Expose @SerializedName("npc_sell_price") val npcPrice: Double?,
+ @Expose @SerializedName("motes_sell_price") val motesPrice: Double?
+)