Package com.aerisweather.aeris.response
Class StormCellResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.StormCellResponse
-
public class StormCellResponse extends AerisFriendlyResponse
Object to make thestormcells
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.response.AerisFriendlyResponse
response
-
-
Constructor Summary
Constructors Constructor Description StormCellResponse(AerisDataJSON data)
Constructor the the stormcells response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellForecast
getCellForecast()
Get the cell forecastCellTraits
getCellTraits()
String
getId()
Get the id from the response.AerisLocation
getLocation()
Gets the Aeris location from the response.CellObservation
getObservation()
Get the observation from the cellPlace
getPlace()
Get the place from the responseString
getProfileTimezone()
Get the timezone for the profile.RelativeTo
getRelative()
Get the relative to for the response.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getProfile
-
-
-
-
Constructor Detail
-
StormCellResponse
public StormCellResponse(AerisDataJSON data)
Constructor the the stormcells response. Wraps the JSON data into a friendlier object to determine what data is available.- Parameters:
data
- JSON data
-
-
Method Detail
-
getCellForecast
public CellForecast getCellForecast()
Get the cell forecast- Returns:
- the cell forecast
-
getId
public String getId()
Description copied from class:AerisFriendlyResponse
Get the id from the response.- Overrides:
getId
in classAerisFriendlyResponse
- Returns:
- the id for the response.
-
getPlace
public Place getPlace()
Description copied from class:AerisFriendlyResponse
Get the place from the response- Overrides:
getPlace
in classAerisFriendlyResponse
- Returns:
- The place
-
getProfileTimezone
public String getProfileTimezone()
Description copied from class:AerisFriendlyResponse
Get the timezone for the profile.- Overrides:
getProfileTimezone
in classAerisFriendlyResponse
- Returns:
- the timezone.
-
getRelative
public RelativeTo getRelative()
Description copied from class:AerisFriendlyResponse
Get the relative to for the response.- Overrides:
getRelative
in classAerisFriendlyResponse
- Returns:
- The relative to
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponse
Gets the Aeris location from the response.- Overrides:
getLocation
in classAerisFriendlyResponse
- Returns:
- the location
-
getObservation
public CellObservation getObservation()
Get the observation from the cell- Returns:
- the cell observation
-
getCellTraits
public CellTraits getCellTraits()
-
-