diff options
author | Cow <cow@volloeko.de> | 2023-07-22 22:32:17 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2023-07-22 22:32:17 +0200 |
commit | 58234e9074b58f2c523df51171fcfa77b44f2ae8 (patch) | |
tree | 36d12e312026703e5700b25ce2cd4396684be090 /src/main/java/de/cowtipper/cowlection/data | |
parent | 0ce8dc4ff8fa01fa17963c2ca7577700956ecf43 (diff) | |
download | Cowlection-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.java | 45 | ||||
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/data/HyStalkingData.java | 2 |
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; } |