Guest User

Untitled

a guest
Mar 18th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
  2.  
  3. import android.support.annotation.NonNull;
  4.  
  5. import retrofit2.Call;
  6. import retrofit2.Callback;
  7. import retrofit2.Response;
  8.  
  9. public interface ${NAME}Api {
  10. interface ${NAME}ServiceCallback<T> extends Callback<T> {
  11. void onSuccess(T allResponse);
  12. void onFail();
  13. void onResponse(@NonNull Call<T> call, @NonNull Response<T> response);
  14. void onFailure(@NonNull Call<T> call, @NonNull Throwable t);
  15. }
  16.  
  17. void getAllResponse(${NAME}ServiceCallback<${ITEM_CLASS}> callback);
  18. }
Add Comment
Please, Sign In to add comment