use of me.semx11.autotip.api.reply.impl.SettingsReply in project Hyperium by HyperiumClient.
the class Autotip method reloadGlobalSettings.
public void reloadGlobalSettings() {
SettingsReply reply = SettingsRequest.of(this).execute();
if (!reply.isSuccess()) {
throw new AssertionError("Connection error while fetching global settings");
}
globalSettings = reply.getSettings();
}
use of me.semx11.autotip.api.reply.impl.SettingsReply in project Hyperium by HyperiumClient.
the class SettingsRequest method execute.
@Override
public SettingsReply execute() {
HttpUriRequest request = GetBuilder.of(this).addParameter("v", version.get()).build();
Optional<Reply> optional = RequestHandler.getReply(this, request.getURI());
return optional.map(reply -> (SettingsReply) reply).orElseGet(() -> new SettingsReply(false));
}
Aggregations