From 2dde468ced4a5c32646999377d0311432d31dbd0 Mon Sep 17 00:00:00 2001 From: Zone_Infinity Date: Sat, 22 Jan 2022 18:20:06 +0530 Subject: [PATCH] Fix some stuff --- ibl4j/src/main/java/me/infinity/ibl/IBL.java | 1 - .../main/java/me/infinity/ibl/data/entities/IBLUser.java | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ibl4j/src/main/java/me/infinity/ibl/IBL.java b/ibl4j/src/main/java/me/infinity/ibl/IBL.java index 35bfd62..49c508d 100644 --- a/ibl4j/src/main/java/me/infinity/ibl/IBL.java +++ b/ibl4j/src/main/java/me/infinity/ibl/IBL.java @@ -97,7 +97,6 @@ static void getUserInfo(String userID, Consumer userConsumer) { Request request = new Request.Builder() .get() .url(BASE_URL + "user/" + userID) - .build(); IBLCall.fetch(request, IBLUser.class, response -> { diff --git a/ibl4j/src/main/java/me/infinity/ibl/data/entities/IBLUser.java b/ibl4j/src/main/java/me/infinity/ibl/data/entities/IBLUser.java index 8dc3824..15be6e8 100644 --- a/ibl4j/src/main/java/me/infinity/ibl/data/entities/IBLUser.java +++ b/ibl4j/src/main/java/me/infinity/ibl/data/entities/IBLUser.java @@ -1,8 +1,10 @@ package me.infinity.ibl.data.entities; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; +@JsonIgnoreProperties(ignoreUnknown = true) public class IBLUser { @JsonIgnore private boolean exists = true; @@ -28,10 +30,6 @@ public boolean exists() { return exists; } - public boolean isExists() { - return exists; - } - public String getNickname() { return nickname; }