Package com.aerisweather.aeris.response
Class FiresOutlookResponse
- java.lang.Object
-
- com.aerisweather.aeris.model.AerisResponse
-
- com.aerisweather.aeris.response.FiresOutlookResponse
-
public class FiresOutlookResponse extends AerisResponse
Object to make the FiresOutlook 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 FiresOutlookResponse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FiresOutlookResponse
createObjectWithError(String code, String description)
Creates a JSON String for an FiresOutlookResponse with a specific Error code and description.static String
createWithError(String code, String description)
Creates a JSON String for an FiresOutlookResponse 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 FiresOutlookResponse 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 FiresOutlookResponse createObjectWithError(String code, String description)
Creates a JSON String for an FiresOutlookResponse 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
-
-