Package com.aerisweather.aeris.response
Class FiresResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.FiresResponse
-
public class FiresResponse extends AerisFriendlyResponse
Object to make thefiresendpoint 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.response.AerisFriendlyResponse
response
-
-
Constructor Summary
Constructors Constructor Description FiresResponse(AerisDataJSON data)Constructor the the fires Response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AerisLocationgetLocation()Gets the Aeris location from the response.FiresPerimetergetPerimeter()Get the report from the data.PlacegetPlace()Get the place from the responseStringgetProfileTimezone()Get the timezone for the profile.RelativeTogetRelative()Get the relative to for the response.FiresReportgetReport()Get the report from the data.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getId, getProfile
-
-
-
-
Constructor Detail
-
FiresResponse
public FiresResponse(AerisDataJSON data)
Constructor the the fires Response. Wraps the JSON data into a friendlier object to determine what data is available.- Parameters:
data- JSON data
-
-
Method Detail
-
getReport
public FiresReport getReport()
Get the report from the data.- Returns:
- the fires report.
-
getPerimeter
public FiresPerimeter getPerimeter()
Get the report from the data.- Returns:
- the fires report.
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponseGets the Aeris location from the response.- Overrides:
getLocationin classAerisFriendlyResponse- Returns:
- the location
-
getPlace
public Place getPlace()
Description copied from class:AerisFriendlyResponseGet the place from the response- Overrides:
getPlacein classAerisFriendlyResponse- Returns:
- The place
-
getProfileTimezone
public String getProfileTimezone()
Description copied from class:AerisFriendlyResponseGet the timezone for the profile.- Overrides:
getProfileTimezonein classAerisFriendlyResponse- Returns:
- the timezone.
-
getRelative
public RelativeTo getRelative()
Description copied from class:AerisFriendlyResponseGet the relative to for the response.- Overrides:
getRelativein classAerisFriendlyResponse- Returns:
- The relative to
-
-