use of me.semx11.autotip.api.reply.Reply in project Hyperium by HyperiumClient.
the class LoginRequest method execute.
@Override
public LoginReply execute() {
HttpUriRequest request = GetBuilder.of(this).addParameter("username", profile.getName()).addParameter("uuid", profile.getId().toString().replace("-", "")).addParameter("tips", tips).addParameter("v", autotip.getVersion()).addParameter("mc", autotip.getMcVersion()).addParameter("os", System.getProperty("os.name")).addParameter("hash", hash).build();
Optional<Reply> optional = RequestHandler.getReply(this, request.getURI());
return optional.map(reply -> (LoginReply) reply).orElseGet(() -> new LoginReply(false));
}
Aggregations