mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-04 15:31:53 +03:00
Мелкие правки
This commit is contained in:
parent
b74cbfbc2d
commit
8509fd37c7
1 changed files with 15 additions and 21 deletions
|
@ -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() {}
|
||||
}
|
Loading…
Reference in a new issue