package me.bell.downapp.presenter;
import me.bell.downapp.util.HttpUtils;
/**
* @Info
* @Auth Bello
* @Time 18-4-11 下午3:58
* @Ver
*/
public class HttpPresenter extends HttpUtils {
private IHttpView mView;
public HttpPresenter(IHttpView mView) {
this.mView = mView;
}
/**
* 请求分类
* @param url
*/
public void getCate(String url, String action) {
doGetMethod(url, action);
}
/**
* 请求列表
* @param url
*/
public void getAppList(String url) {
doGetMethod(url, null);
}
@Override
public void callbackHttp(String action, String httpResult) {
mView.onHttpResult(action, httpResult);
}
}