Мелкие правки

This commit is contained in:
sasha0552 2019-04-10 03:28:57 +06:00
parent b74cbfbc2d
commit 8509fd37c7

View file

@ -29,24 +29,6 @@ protected Entry fetchEntry(String username) throws IOException {
throw new UnsupportedOperationException("Произошол троллинг...");
}
@Override
protected boolean updateAuth(UUID uuid, String username, String accessToken) throws IOException {
boolean isUUIDupdated = updUUID(uuid, username).equals("OK");
boolean isAccessTokenUpdated = updAccessToken(accessToken, username).equals("OK");
if (isUUIDupdated == true && isAccessTokenUpdated == true) {
return true;
} else {
return false;
}
}
@Override
protected boolean updateServerID(UUID uuid, String serverID) throws IOException {
return updServerID(uuid, serverID).equals("OK");
}
/*
@Override
@ -64,6 +46,20 @@ public String uuidToUsername(UUID uuid) throws IOException {
*/
@Override
protected boolean updateAuth(UUID uuid, String username, String accessToken) throws IOException {
boolean isUUIDupdated = updUUID(uuid, username).equals("OK");
boolean isAccessTokenUpdated = updAccessToken(accessToken, username).equals("OK");
if (isUUIDupdated == true && isAccessTokenUpdated == true) {
return true;
}
return false;
}
@Override
protected boolean updateServerID(UUID uuid, String serverID) throws IOException {
return updServerID(uuid, serverID).equals("OK");
}
protected String updAccessToken(final String accessToken, final String username) throws IOException {
final String type = "SetAccessToken";
@ -114,7 +110,5 @@ protected String updUUID(final UUID uuid, final String username) throws IOExcept
}
@Override
public void close() {
// Ничего не делать
}
public void close() {}
}