Interface EarthquakesTaskCallback
-
public interface EarthquakesTaskCallback
Callback interface forEarthquakesTask
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEarthquakesFailed(AerisError error)
This method will be called when an earthquakes request to the API has failed.void
onEarthquakesLoaded(List<EarthquakesResponse> responses)
This method will be called when a list of earthquakes have been returned from the API.
-
-
-
Method Detail
-
onEarthquakesLoaded
void onEarthquakesLoaded(List<EarthquakesResponse> responses)
This method will be called when a list of earthquakes have been returned from the API.- Parameters:
responses
- List of responses
-
onEarthquakesFailed
void onEarthquakesFailed(AerisError error)
This method will be called when an earthquakes request to the API has failed.- Parameters:
error
- The aeris error regarding to the fail.
-
-