removed unused class

This commit is contained in:
danijoo
2015-10-30 00:02:51 +01:00
parent bc98a36f02
commit a45cd4c444

View File

@@ -1,24 +0,0 @@
package net.headlezz.udacityproject1.tmdbapi;
import retrofit.Callback;
import retrofit.Response;
import retrofit.Retrofit;
public abstract class MovieListCallback implements Callback<MovieList> {
@Override
public void onResponse(Response<MovieList> response, Retrofit retrofit) {
if(response.isSuccess())
onResponse(response.body());
else // we dont want want res
onFailure(new MovieDownloadException("Something went wrong" + response.code()));
}
protected abstract void onResponse(MovieList movies);
public static class MovieDownloadException extends Exception {
public MovieDownloadException(String detailMessage) {
super(detailMessage);
}
}
}