Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
- import android.support.annotation.NonNull;
- import retrofit2.Call;
- import retrofit2.Callback;
- import retrofit2.Response;
- public interface ${NAME}Api {
- interface ${NAME}ServiceCallback<T> extends Callback<T> {
- void onSuccess(T allResponse);
- void onFail();
- void onResponse(@NonNull Call<T> call, @NonNull Response<T> response);
- void onFailure(@NonNull Call<T> call, @NonNull Throwable t);
- }
- void getAllResponse(${NAME}ServiceCallback<${ITEM_CLASS}> callback);
- }
Add Comment
Please, Sign In to add comment