public class NearestPlacesDataLoader extends BaseAsyncLoader<java.util.List<PlaceData>>
RESPONSE_CODE_UNKNOWN| Constructor and Description |
|---|
NearestPlacesDataLoader(java.lang.String locale,
OnNearestPlacesListener listener) |
| Modifier and Type | Method and Description |
|---|---|
protected retrofit.Call<java.util.List<PlaceData>> |
createCall() |
protected boolean |
isDataValid(java.util.List<PlaceData> data) |
protected void |
onError(int errorCode,
int responseCode) |
protected void |
onSuccess(java.util.List<PlaceData> data) |
cancel, isResponseCodeInvalid, loadpublic NearestPlacesDataLoader(java.lang.String locale,
OnNearestPlacesListener listener)
protected boolean isDataValid(java.util.List<PlaceData> data)
isDataValid in class BaseAsyncLoader<java.util.List<PlaceData>>protected retrofit.Call<java.util.List<PlaceData>> createCall()
createCall in class BaseAsyncLoader<java.util.List<PlaceData>>protected void onSuccess(java.util.List<PlaceData> data)
onSuccess in class BaseAsyncLoader<java.util.List<PlaceData>>protected void onError(int errorCode,
int responseCode)
onError in class BaseAsyncLoader<java.util.List<PlaceData>>