Skip to content

Commit 349dedd

Browse files
committed
Fixed FetchKey not working
1 parent f08b82b commit 349dedd

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
id 'maven-publish'
44
}
55

6-
def $VERSION = '1.1.2'
6+
def $VERSION = '1.1.3'
77
group = 'me.sallyio'
88
version = $VERSION
99

src/main/java/me/sallyio/PandaKey/model/BaseKeyModel.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,34 @@ public class BaseKeyModel {
2626
@JsonProperty("isPremium")
2727
private boolean isPremium;
2828

29+
@JsonProperty("lastResetAt")
30+
private String lastResetAt;
31+
32+
@JsonProperty("serviceId")
33+
private String serviceId;
34+
35+
@Override
36+
public String toString() {
37+
return "BaseKeyModel{" +
38+
"id='" + id + '\'' +
39+
", value='" + value + '\'' +
40+
", note='" + note + '\'' +
41+
", hwid='" + hwid + '\'' +
42+
", expiresAt=" + expiresAt +
43+
", isPremium=" + isPremium +
44+
", lastResetAt='" + lastResetAt + '\'' +
45+
", serviceId='" + serviceId + '\'' +
46+
'}';
47+
}
48+
49+
public String getLastResetAt() {
50+
return lastResetAt;
51+
}
52+
53+
public String getServiceId() {
54+
return serviceId;
55+
}
56+
2957
public String getId() {
3058
return id;
3159
}

src/main/java/me/sallyio/PandaKey/rest/RestClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public BaseRestMessageModel deleteKey(String key) throws IOException, Interrupte
141141
* @throws InterruptedException
142142
*/
143143
public KeyModel fetchKey(String query) throws URISyntaxException, IOException, InterruptedException {
144-
URIBuilder builder = new URIBuilder("https://pandadevelopment/api/key/fetch");
144+
URIBuilder builder = new URIBuilder("https://pandadevelopment.net/api/key/fetch");
145145
builder.addParameter("apiKey", this.apikey);
146146
builder.addParameter("fetch", query);
147147

@@ -214,7 +214,7 @@ public BaseRestMessageModel deleteGenerateKey(String key) throws IOException, In
214214
* @throws InterruptedException
215215
*/
216216
public KeylessModel fetchKeyless(String query) throws URISyntaxException, IOException, InterruptedException {
217-
URIBuilder builder = new URIBuilder("https://pandadevelopment/api/keyless/fetch");
217+
URIBuilder builder = new URIBuilder("https://pandadevelopment.net/api/keyless/fetch");
218218
builder.addParameter("apiKey", this.apikey);
219219
builder.addParameter("fetch", query);
220220

@@ -241,7 +241,7 @@ public KeylessModel fetchKeyless(String query) throws URISyntaxException, IOExce
241241
* @throws InterruptedException
242242
*/
243243
public BaseGenerateKeyModel fetchGenereatedKey(String query) throws URISyntaxException, IOException, InterruptedException {
244-
URIBuilder builder = new URIBuilder("https://pandadevelopment/api/generated-key/fetch");
244+
URIBuilder builder = new URIBuilder("https://pandadevelopment.net/api/generated-key/fetch");
245245
builder.addParameter("apiKey", this.apikey);
246246
builder.addParameter("fetch", query);
247247

0 commit comments

Comments
 (0)