当前位置: 首页>>代码示例>>Java>>正文


Java ResponseImagesListEntity类代码示例

本文整理汇总了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);
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:27,代码来源:ImagesListInteractorImpl.java

示例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);
            }
        }
    }
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:23,代码来源:ImagesListFragment.java

示例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);
            }
        }
    }
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:22,代码来源:ImagesListFragment.java

示例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);
    }
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:10,代码来源:ImagesListPresenterImpl.java

示例5: ImagesListInteractorImpl

import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
public ImagesListInteractorImpl(BaseMultiLoadedListener<ResponseImagesListEntity> loadedListener) {
    this.loadedListener = loadedListener;
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:4,代码来源:ImagesListInteractorImpl.java

示例6: refreshListData

import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
void refreshListData(ResponseImagesListEntity responseImagesListEntity); 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:2,代码来源:ImagesListView.java

示例7: addMoreListData

import com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity; //导入依赖的package包/类
void addMoreListData(ResponseImagesListEntity responseImagesListEntity); 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:2,代码来源:ImagesListView.java


注:本文中的com.github.obsessive.simplifyreader.bean.ResponseImagesListEntity类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。