use of com.shizhefei.mvc.http.UrlBuilder in project MVCHelper by LuckyJayce.
the class GankMeizhiOkHttp_Datasource method load.
private RequestHandle load(ResponseSender<List<Meizhi>> sender, final int page) {
// http://gank.io/api/data/Android/10/1
String url = new UrlBuilder("http://gank.io/api/data").sp("福利").sp("10").sp(page).build();
GetMethod method = new GetMethod(url);
method.executeAsync(sender, new MeizhiParser<List<Meizhi>>() {
@Override
protected void onParse(Response responses, List<Meizhi> meizhis) {
mPage = page;
}
});
return method;
}
Aggregations