本文整理汇总了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);
}
}
}
示例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);
}
}
}
示例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);
}
示例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);
}
}
示例5: VideosListInteractorImpl
import com.github.obsessive.simplifyreader.bean.ResponseVideosListEntity; //导入依赖的package包/类
public VideosListInteractorImpl(BaseMultiLoadedListener<ResponseVideosListEntity> loadedListener) {
this.loadedListener = loadedListener;
}
示例6: refreshListData
import com.github.obsessive.simplifyreader.bean.ResponseVideosListEntity; //导入依赖的package包/类
void refreshListData(ResponseVideosListEntity responseVideosListEntity);
示例7: addMoreListData
import com.github.obsessive.simplifyreader.bean.ResponseVideosListEntity; //导入依赖的package包/类
void addMoreListData(ResponseVideosListEntity responseVideosListEntity);