hirezapi.endpoints.statuspage.ServerStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HiRezApi-common Show documentation
Show all versions of HiRezApi-common Show documentation
Java-Based API Wrapper for Hi-Rez Studios games.
The newest version!
package hirezapi.endpoints.statuspage;
import hirezapi.HiRezApi;
import hirezapi.endpoints.AbstractEndpoint;
import hirezapi.json.ApiServerStatus;
public class ServerStatus extends AbstractEndpoint {
public ServerStatus(HiRezApi api) {
super(api);
}
public ApiServerStatus getStatus() {
return api.getRestController()
.request(buildUrl("gethirezserverstatus"), ApiServerStatus[].class)[0];
}
public Feeds getFeeds(boolean allPlatforms) {
return new Feeds(api.getConfiguration(), allPlatforms);
}
public Feeds getFeeds() {
return getFeeds(false);
}
}