Package de.saibotk.jmaw
Class APIStatus
java.lang.Object
de.saibotk.jmaw.APIStatus
This is the response of the Mojang API containing a status signal
APIStatus.MojangAPIStatusCode
for each service they offer.- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis is the status code returned by the API as anenum. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSimple helper which callsMap.getOrDefault(Object, Object)on the internal services list.This function returns aMapof all services with their name and corresponding status.
-
Constructor Details
-
APIStatus
public APIStatus()
-
-
Method Details
-
getServices
This function returns aMapof all services with their name and corresponding status.- Returns:
HashMap- Since:
- 1.0
-
get
Simple helper which callsMap.getOrDefault(Object, Object)on the internal services list.- Parameters:
serviceName- the service.- Returns:
- the status for the service or null if the service was not found. (Wrapped in
Optional) - Since:
- 1.0
-