Class 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.
    • Constructor Detail

      • DroughtsMonitorResponse

        public DroughtsMonitorResponse()
    • 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 error
        description - 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 error
        description - description of the error
        Returns:
        String JSON object of an AerisResponse with the code and description