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 StringgetId()Get the id from the response.LightningObservationgetLightningObservation()Gets the lightning observation dataAerisLocationgetLocation()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:AerisFriendlyResponseGet the id from the response.- Overrides:
getIdin classAerisFriendlyResponse- Returns:
- the id for the response.
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponseGets the Aeris location from the response.- Overrides:
getLocationin classAerisFriendlyResponse- Returns:
- the location
-
getLightningObservation
public LightningObservation getLightningObservation()
Gets the lightning observation data- Returns:
- lightning observation data
-
-