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


Java ResponseVideosListEntity类代码示例

本文整理汇总了Java中com.github.obsessive.simplifyreader.bean.ResponseVideosListEntity的典型用法代码示例。如果您正苦于以下问题:Java ResponseVideosListEntity类的具体用法?Java ResponseVideosListEntity怎么用?Java ResponseVideosListEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ResponseVideosListEntity类属于com.github.obsessive.simplifyreader.bean包,在下文中一共展示了ResponseVideosListEntity类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: refreshListData

import com.github.obsessive.simplifyreader.bean.ResponseVideosListEntity; //导入依赖的package包/类
@Override
public void refreshListData(ResponseVideosListEntity responseVideosListEntity) {
    if (null != mSwipeRefreshLayout) {
        mSwipeRefreshLayout.setRefreshing(false);
    }

    if (null != responseVideosListEntity && null != responseVideosListEntity.getVideos() && !responseVideosListEntity.getVideos().isEmpty()) {
        if (null != mListViewAdapter) {
            mListViewAdapter.getDataList().clear();
            mListViewAdapter.getDataList().addAll(responseVideosListEntity.getVideos());
            mListViewAdapter.notifyDataSetChanged();
        }

        if (UriHelper.getInstance().calculateTotalPages(responseVideosListEntity.getTotal()) > mCurrentPage) {
            mListView.setCanLoadMore(true);
        } else {
            mListView.setCanLoadMore(false);
        }
    }
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:21,代码来源:VideosListFragment.java

示例2: addMoreListData

import com.github.obsessive.simplifyreader.bean.ResponseVideosListEntity; //导入依赖的package包/类
@Override
public void addMoreListData(ResponseVideosListEntity responseVideosListEntity) {
    if (null != mListView) {
        mListView.onLoadMoreComplete();
    }

    if (null != responseVideosListEntity && null != responseVideosListEntity.getVideos() && !responseVideosListEntity.getVideos().isEmpty()) {
        if (null != mListViewAdapter) {
            mListViewAdapter.getDataList().addAll(responseVideosListEntity.getVideos());
            mListViewAdapter.notifyDataSetChanged();
        }

        if (UriHelper.getInstance().calculateTotalPages(responseVideosListEntity.getTotal()) > mCurrentPage) {
            mListView.setCanLoadMore(true);
        } else {
            mListView.setCanLoadMore(false);
        }
    }
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:20,代码来源:VideosListFragment.java

示例3: getCommonListData

import com.github.obsessive.simplifyreader.bean.ResponseVideosListEntity; //导入依赖的package包/类
@Override
public void getCommonListData(final String requestTag, final int event_tag, String keywords, int page) {
    TLog.d(requestTag, UriHelper.getInstance().getVideosListUrl(keywords, page));

    GsonRequest<ResponseVideosListEntity> gsonRequest = new GsonRequest<ResponseVideosListEntity>(
            UriHelper.getInstance().getVideosListUrl(keywords, page),
            null,
            new TypeToken<ResponseVideosListEntity>() {
            }.getType(),
            new Response.Listener<ResponseVideosListEntity>() {
                @Override
                public void onResponse(ResponseVideosListEntity 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,代码行数:29,代码来源:VideosListInteractorImpl.java

示例4: onSuccess

import com.github.obsessive.simplifyreader.bean.ResponseVideosListEntity; //导入依赖的package包/类
@Override
public void onSuccess(int event_tag, ResponseVideosListEntity data) {
    mVideosListView.hideLoading();
    if (event_tag == Constants.EVENT_REFRESH_DATA) {
        mVideosListView.refreshListData(data);
    } else if (event_tag == Constants.EVENT_LOAD_MORE_DATA) {
        mVideosListView.addMoreListData(data);
    }
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:10,代码来源:VideosListPresenterImpl.java

示例5: VideosListInteractorImpl

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

示例6: refreshListData

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

示例7: addMoreListData

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


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