Skip to content

Commit

Permalink
Fixed FetchKey not working
Browse files Browse the repository at this point in the history
  • Loading branch information
SayHiEveryday committed Oct 23, 2024
1 parent f08b82b commit 349dedd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
}

def $VERSION = '1.1.2'
def $VERSION = '1.1.3'
group = 'me.sallyio'
version = $VERSION

Expand Down
28 changes: 28 additions & 0 deletions src/main/java/me/sallyio/PandaKey/model/BaseKeyModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,34 @@ public class BaseKeyModel {
@JsonProperty("isPremium")
private boolean isPremium;

@JsonProperty("lastResetAt")
private String lastResetAt;

@JsonProperty("serviceId")
private String serviceId;

@Override
public String toString() {
return "BaseKeyModel{" +
"id='" + id + '\'' +
", value='" + value + '\'' +
", note='" + note + '\'' +
", hwid='" + hwid + '\'' +
", expiresAt=" + expiresAt +
", isPremium=" + isPremium +
", lastResetAt='" + lastResetAt + '\'' +
", serviceId='" + serviceId + '\'' +
'}';
}

public String getLastResetAt() {
return lastResetAt;
}

public String getServiceId() {
return serviceId;
}

public String getId() {
return id;
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/me/sallyio/PandaKey/rest/RestClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public BaseRestMessageModel deleteKey(String key) throws IOException, Interrupte
* @throws InterruptedException
*/
public KeyModel fetchKey(String query) throws URISyntaxException, IOException, InterruptedException {
URIBuilder builder = new URIBuilder("https://pandadevelopment/api/key/fetch");
URIBuilder builder = new URIBuilder("https://pandadevelopment.net/api/key/fetch");
builder.addParameter("apiKey", this.apikey);
builder.addParameter("fetch", query);

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

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

Expand Down

0 comments on commit 349dedd

Please sign in to comment.