aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/data
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2023-07-22 22:32:17 +0200
committerCow <cow@volloeko.de>2023-07-22 22:32:17 +0200
commit58234e9074b58f2c523df51171fcfa77b44f2ae8 (patch)
tree36d12e312026703e5700b25ce2cd4396684be090 /src/main/java/de/cowtipper/cowlection/data
parent0ce8dc4ff8fa01fa17963c2ca7577700956ecf43 (diff)
downloadCowlection-58234e9074b58f2c523df51171fcfa77b44f2ae8.tar.gz
Cowlection-58234e9074b58f2c523df51171fcfa77b44f2ae8.tar.bz2
Cowlection-58234e9074b58f2c523df51171fcfa77b44f2ae8.zip
Changed API key validation
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/data')
-rw-r--r--src/main/java/de/cowtipper/cowlection/data/HyApiKey.java45
-rw-r--r--src/main/java/de/cowtipper/cowlection/data/HyStalkingData.java2
2 files changed, 1 insertions, 46 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/data/HyApiKey.java b/src/main/java/de/cowtipper/cowlection/data/HyApiKey.java
deleted file mode 100644
index 9552948..0000000
--- a/src/main/java/de/cowtipper/cowlection/data/HyApiKey.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package de.cowtipper.cowlection.data;
-
-@SuppressWarnings("unused")
-public class HyApiKey {
- private boolean success;
- private String cause;
-
- private Record record;
-
- /**
- * No-args constructor for GSON
- */
- private HyApiKey() {
- }
-
- public boolean isSuccess() {
- return success;
- }
-
- public String getCause() {
- return cause;
- }
-
- public Record getRecord() {
- return record;
- }
-
- public class Record {
- private int queriesInPastMin;
- private int limit;
- private long totalQueries;
-
- public int getQueriesInPastMin() {
- return queriesInPastMin;
- }
-
- public int getLimit() {
- return limit;
- }
-
- public long getTotalQueries() {
- return totalQueries;
- }
- }
-}
diff --git a/src/main/java/de/cowtipper/cowlection/data/HyStalkingData.java b/src/main/java/de/cowtipper/cowlection/data/HyStalkingData.java
index 5233917..bdac08f 100644
--- a/src/main/java/de/cowtipper/cowlection/data/HyStalkingData.java
+++ b/src/main/java/de/cowtipper/cowlection/data/HyStalkingData.java
@@ -48,7 +48,7 @@ public class HyStalkingData {
}
public String getMode() {
- // modes partially taken from https://api.hypixel.net/gameCounts?key=MOO
+ // modes partially taken from https://api.hypixel.net/gameCounts
if (mode == null) {
return null;
}