mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-04 15:31:53 +03:00
Уменьшение колва строк
This commit is contained in:
parent
20158a3942
commit
8b6359255a
1 changed files with 3 additions and 24 deletions
|
@ -51,14 +51,7 @@ protected String updAccessToken(final String accessToken, final String username)
|
|||
final String encodedUsername = IOHelper.urlEncode(Objects.toString(username));
|
||||
final String encodedAccessToken = IOHelper.urlEncode(Objects.toString(accessToken));
|
||||
final URL formattedUrl = new URL(
|
||||
CommonHelper.replace(url,
|
||||
"type",
|
||||
type,
|
||||
"username",
|
||||
encodedUsername,
|
||||
"uuid",
|
||||
encodedAccessToken));
|
||||
|
||||
CommonHelper.replace(url, "type", type, "username", encodedUsername, "uuid", encodedAccessToken));
|
||||
return IOHelper.request(formattedUrl);
|
||||
}
|
||||
|
||||
|
@ -67,14 +60,7 @@ protected String updServerID(final UUID uuid, final String serverID) throws IOEx
|
|||
final String encodedUUID = IOHelper.urlEncode(Objects.toString(uuid));
|
||||
final String encodedID = IOHelper.urlEncode(serverID);
|
||||
final URL formattedUrl = new URL(
|
||||
CommonHelper.replace(url,
|
||||
"type",
|
||||
type,
|
||||
"uuid",
|
||||
encodedUUID,
|
||||
"ServerID",
|
||||
encodedID));
|
||||
|
||||
CommonHelper.replace(url, "type", type, "uuid", encodedUUID, "ServerID", encodedID));
|
||||
return IOHelper.request(formattedUrl);
|
||||
}
|
||||
|
||||
|
@ -83,14 +69,7 @@ protected String updUUID(final UUID uuid, final String username) throws IOExcept
|
|||
final String encodedUsername = IOHelper.urlEncode(Objects.toString(username));
|
||||
final String encodedUUID = IOHelper.urlEncode(Objects.toString(uuid));
|
||||
final URL formattedUrl = new URL(
|
||||
CommonHelper.replace(url,
|
||||
"type",
|
||||
type,
|
||||
"username",
|
||||
encodedUsername,
|
||||
"uuid",
|
||||
encodedUUID));
|
||||
|
||||
CommonHelper.replace(url, "type", type, "username", encodedUsername, "uuid", encodedUUID));
|
||||
return IOHelper.request(formattedUrl);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue