Package com.aerisweather.aeris.response
Class LightningResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.LightningResponse
-
public class LightningResponse extends AerisFriendlyResponse
-
-
Field Summary
-
Fields inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
response
-
-
Constructor Summary
Constructors Constructor Description LightningResponse(AerisDataJSON data)
Initialize with aeris json data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Get the id from the response.LightningObservation
getLightningObservation()
Gets the lightning observation dataAerisLocation
getLocation()
Gets the Aeris location from the response.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getPlace, getProfile, getProfileTimezone, getRelative
-
-
-
-
Constructor Detail
-
LightningResponse
public LightningResponse(AerisDataJSON data)
Initialize with aeris json data.- Parameters:
data
- data to initialize with.
-
-
Method Detail
-
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.
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponse
Gets the Aeris location from the response.- Overrides:
getLocation
in classAerisFriendlyResponse
- Returns:
- the location
-
getLightningObservation
public LightningObservation getLightningObservation()
Gets the lightning observation data- Returns:
- lightning observation data
-
-