aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-12 22:31:06 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-12 22:31:06 +0200
commit70dfeb1e6b3f241731063d7014207b02b074bd8e (patch)
tree6486c17c272cb72108676b9804753c979c8905c4 /src/main/java/at/hannibal2/skyhanni/utils
parent1a824ba175cbb3b31af86892e571fed9dc9ccf1b (diff)
downloadskyhanni-70dfeb1e6b3f241731063d7014207b02b074bd8e.tar.gz
skyhanni-70dfeb1e6b3f241731063d7014207b02b074bd8e.tar.bz2
skyhanni-70dfeb1e6b3f241731063d7014207b02b074bd8e.zip
Added mayor election data and added Finnegan Farming Simulator support for crop milestone display
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/MayorData.java77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/MayorData.java b/src/main/java/at/hannibal2/skyhanni/utils/MayorData.java
new file mode 100644
index 000000000..1c73572d4
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/utils/MayorData.java
@@ -0,0 +1,77 @@
+package at.hannibal2.skyhanni.utils;
+
+import com.google.gson.annotations.Expose;
+
+import java.util.ArrayList;
+
+public class MayorData {
+ @Expose
+ public boolean success;
+ @Expose
+ public long lastUpdated;
+ @Expose
+ public Mayor mayor;
+ @Expose
+ public Election current;
+
+ public class Candidate {
+ @Expose
+ public String key;
+ @Expose
+ public String name;
+ @Expose
+ public ArrayList<Perk> perks;
+ @Expose
+ public int votes;
+
+ @Override
+ public String toString() {
+ return "Candidate{" +
+ "key='" + key + '\'' +
+ ", name='" + name + '\'' +
+ ", perks=" + perks +
+ ", votes=" + votes +
+ '}';
+ }
+ }
+
+// public class Current {
+// @Expose
+// public int year;
+// @Expose
+// public ArrayList<Candidate> candidates;
+// }
+
+ public class Election {
+ @Expose
+ public int year;
+ @Expose
+ public ArrayList<Candidate> candidates;
+ }
+
+ public class Mayor {
+ @Expose
+ public String key;
+ @Expose
+ public String name;
+ @Expose
+ public ArrayList<Perk> perks;
+ @Expose
+ public Election election;
+ }
+
+ public class Perk {
+ @Expose
+ public String name;
+ @Expose
+ public String description;
+
+ @Override
+ public String toString() {
+ return "Perk{" +
+ "name='" + name + '\'' +
+ ", description='" + description + '\'' +
+ '}';
+ }
+ }
+} \ No newline at end of file