本文整理汇总了Java中com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity类的典型用法代码示例。如果您正苦于以下问题:Java ResponseImagesListEntity类的具体用法?Java ResponseImagesListEntity怎么用?Java ResponseImagesListEntity使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ResponseImagesListEntity类属于com.github.obsessive.simplifyreader.bean包,在下文中一共展示了ResponseImagesListEntity类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCommonListData
import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
@Override
public void getCommonListData(final String requestTag, final int event_tag, String keywords, int page) {
GsonRequest<ResponseImagesListEntity> gsonRequest = new GsonRequest<ResponseImagesListEntity>(
UriHelper.getInstance().getImagesListUrl(keywords, page),
null,
new TypeToken<ResponseImagesListEntity>() {
}.getType(),
new Response.Listener<ResponseImagesListEntity>() {
@Override
public void onResponse(ResponseImagesListEntity response) {
loadedListener.onSuccess(event_tag, response);
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
loadedListener.onException(error.getMessage());
}
}
);
gsonRequest.setShouldCache(true);
gsonRequest.setTag(requestTag);
VolleyHelper.getInstance().getRequestQueue().add(gsonRequest);
}
示例2: refreshListData
import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
@Override
public void refreshListData(ResponseImagesListEntity responseImagesListEntity) {
if (null != mSwipeRefreshLayout) {
mSwipeRefreshLayout.setRefreshing(false);
}
if (null != responseImagesListEntity) {
if (null != mListViewAdapter) {
mListViewAdapter.getDataList().clear();
mListViewAdapter.getDataList().addAll(responseImagesListEntity.getImgs());
mListViewAdapter.notifyDataSetChanged();
}
if (null != mListView) {
if (UriHelper.getInstance().calculateTotalPages(responseImagesListEntity.getTotalNum()) > mCurrentPage) {
mListView.setCanLoadMore(true);
} else {
mListView.setCanLoadMore(false);
}
}
}
}
示例3: addMoreListData
import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
@Override
public void addMoreListData(ResponseImagesListEntity responseImagesListEntity) {
if (null != mListView) {
mListView.onLoadMoreComplete();
}
if (null != responseImagesListEntity) {
if (null != mListViewAdapter) {
mListViewAdapter.getDataList().addAll(responseImagesListEntity.getImgs());
mListViewAdapter.notifyDataSetChanged();
}
if (null != mListView) {
if (UriHelper.getInstance().calculateTotalPages(responseImagesListEntity.getTotalNum()) > mCurrentPage) {
mListView.setCanLoadMore(true);
} else {
mListView.setCanLoadMore(false);
}
}
}
}
示例4: onSuccess
import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
@Override
public void onSuccess(int event_tag, ResponseImagesListEntity data) {
mImagesListView.hideLoading();
if (event_tag == Constants.EVENT_REFRESH_DATA) {
mImagesListView.refreshListData(data);
} else if (event_tag == Constants.EVENT_LOAD_MORE_DATA) {
mImagesListView.addMoreListData(data);
}
}
示例5: ImagesListInteractorImpl
import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
public ImagesListInteractorImpl(BaseMultiLoadedListener<ResponseImagesListEntity> loadedListener) {
this.loadedListener = loadedListener;
}
示例6: refreshListData
import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
void refreshListData(ResponseImagesListEntity responseImagesListEntity);
示例7: addMoreListData
import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
void addMoreListData(ResponseImagesListEntity responseImagesListEntity);