All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hirezapi.endpoints.statuspage.ServerStatus Maven / Gradle / Ivy

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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy