aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/data/HyApiKey.java
blob: 95529483bb6de22fdc5a64e069001a88b1c3382c (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
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;
        }
    }
}