aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorBrady <thatgravyboat@gmail.com>2024-04-23 10:03:24 -0230
committerGitHub <noreply@github.com>2024-04-23 14:33:24 +0200
commitd12548c5f8235fec8b9563adb25f052c9b678874 (patch)
treeae732016323b1637003ecbc047b128f8b605beb2 /src/main/java/at/hannibal2/skyhanni/data
parent2c08c30523ece6190e301742b780fb85e6979077 (diff)
downloadskyhanni-d12548c5f8235fec8b9563adb25f052c9b678874.tar.gz
skyhanni-d12548c5f8235fec8b9563adb25f052c9b678874.tar.bz2
skyhanni-d12548c5f8235fec8b9563adb25f052c9b678874.zip
Backend: Add ContributorManager (#1519)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ContributorListJson.java10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ContributorsJson.kt12
2 files changed, 12 insertions, 10 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ContributorListJson.java b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ContributorListJson.java
deleted file mode 100644
index 8ea6d8ef6..000000000
--- a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ContributorListJson.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package at.hannibal2.skyhanni.data.jsonobjects.repo;
-
-import com.google.gson.annotations.Expose;
-
-import java.util.List;
-
-public class ContributorListJson {
- @Expose
- public List<String> usernames;
-}
diff --git a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ContributorsJson.kt b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ContributorsJson.kt
new file mode 100644
index 000000000..7857da85a
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ContributorsJson.kt
@@ -0,0 +1,12 @@
+package at.hannibal2.skyhanni.data.jsonobjects.repo
+
+import com.google.gson.annotations.Expose
+
+data class ContributorsJson(
+ @Expose val contributors: Map<String, ContributorJsonEntry>
+)
+
+data class ContributorJsonEntry(
+ @Expose val suffix: String = "§c:O",
+ @Expose val spinny: Boolean = false
+)