blob: 1c73572d4f91f013292ccc8bda8427897117e88d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 + '\'' +
'}';
}
}
}
|