Package com.aerisweather.aeris.response
Class DroughtsMonitorResponse
- java.lang.Object
-
- com.aerisweather.aeris.model.AerisResponse
-
- com.aerisweather.aeris.response.DroughtsMonitorResponse
-
public class DroughtsMonitorResponse extends AerisResponse
Object to make the Droughts/Monitor endpoint response more friendly to determine what parts of the AerisDataJSON have come back in the response.
-
-
Field Summary
-
Fields inherited from class com.aerisweather.aeris.model.AerisResponse
error, responses, success
-
-
Constructor Summary
Constructors Constructor Description DroughtsMonitorResponse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DroughtsMonitorResponse
createObjectWithError(String code, String description)
Creates a JSON String for an DroughtsMonitorResponse with a specific Error code and description.static String
createWithError(String code, String description)
Creates a JSON String for an DroughtsMonitorResponse with a specific Error code and description.-
Methods inherited from class com.aerisweather.aeris.model.AerisResponse
fromJSON, getError, getFirstResponse, getListOfResponse, getNumberOfResponses, getResponse, isSuccessful, isSuccessfulWithResponses
-
-
-
-
Method Detail
-
createWithError
public static String createWithError(String code, String description)
Creates a JSON String for an DroughtsMonitorResponse with a specific Error code and description.- Parameters:
code
- Code of the errordescription
- description of the error- Returns:
- String JSON object of an AerisResponse with the code and description
-
createObjectWithError
public static DroughtsMonitorResponse createObjectWithError(String code, String description)
Creates a JSON String for an DroughtsMonitorResponse with a specific Error code and description.- Parameters:
code
- Code of the errordescription
- description of the error- Returns:
- String JSON object of an AerisResponse with the code and description
-
-