Interface EarthquakesTaskCallback
-
public interface EarthquakesTaskCallbackCallback interface forEarthquakesTask.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEarthquakesFailed(AerisError error)This method will be called when an earthquakes request to the API has failed.voidonEarthquakesLoaded(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.
-
-