diff options
author | Cow <cow@volloeko.de> | 2021-08-13 10:48:19 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2021-08-13 10:48:19 +0200 |
commit | 141a45a8d23237bf23b3b7a14d447440a40e71ea (patch) | |
tree | 2d5e5881b304e76881e1eddd0b467c79be60e7b9 /src/main/java/de/cowtipper/cowlection/data/HyApiKey.java | |
parent | 589b94d1c7a1a648402d62c6c097b2394bff3d1d (diff) | |
download | Cowlection-141a45a8d23237bf23b3b7a14d447440a40e71ea.tar.gz Cowlection-141a45a8d23237bf23b3b7a14d447440a40e71ea.tar.bz2 Cowlection-141a45a8d23237bf23b3b7a14d447440a40e71ea.zip |
Improved error messages for API errors
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/data/HyApiKey.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/data/HyApiKey.java | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/data/HyApiKey.java b/src/main/java/de/cowtipper/cowlection/data/HyApiKey.java index ca7152c..9552948 100644 --- a/src/main/java/de/cowtipper/cowlection/data/HyApiKey.java +++ b/src/main/java/de/cowtipper/cowlection/data/HyApiKey.java @@ -1,11 +1,12 @@ package de.cowtipper.cowlection.data; +@SuppressWarnings("unused") public class HyApiKey { - @SuppressWarnings("unused") private boolean success; - @SuppressWarnings("unused") private String cause; + private Record record; + /** * No-args constructor for GSON */ @@ -19,4 +20,26 @@ public class HyApiKey { 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; + } + } } |