本文整理汇总了Java中cn.eoe.app.biz.WikiDao类的典型用法代码示例。如果您正苦于以下问题:Java WikiDao类的具体用法?Java WikiDao怎么用?Java WikiDao使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WikiDao类属于cn.eoe.app.biz包,在下文中一共展示了WikiDao类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onLoadMore
import cn.eoe.app.biz.WikiDao; //导入依赖的package包/类
@Override
public void onLoadMore() {
if (more_url==null || more_url.equals("")) {
mHandler.sendEmptyMessage(1);
return;
} else {
new Thread() {
@Override
public void run() {
WikiMoreResponse response = new WikiDao(mActivity)
.getMore(more_url);
if (response != null) {
loadMoreEntity = response.getResponse();
mHandler.sendEmptyMessage(0);
}
}
}.start();
}
}
示例2: onLoadMore
import cn.eoe.app.biz.WikiDao; //导入依赖的package包/类
@Override
public void onLoadMore() {
if (more_url.equals(null) || more_url.equals("")) {
mHandler.sendEmptyMessage(1);
return;
} else {
new Thread() {
@Override
public void run() {
WikiMoreResponse response = new WikiDao(mActivity)
.getMore(more_url);
if (response != null) {
loadMoreEntity = response.getResponse();
mHandler.sendEmptyMessage(0);
}
}
}.start();
}
}
示例3: initClass
import cn.eoe.app.biz.WikiDao; //导入依赖的package包/类
private void initClass() {
blogsDao = new BlogsDao(this);
newsDao = new NewsDao(this);
wikiDao = new WikiDao(this);
topDao = new TopDao(this);
}
示例4: doInBackground
import cn.eoe.app.biz.WikiDao; //导入依赖的package包/类
@Override
protected Map<String, Object> doInBackground(BaseDao... params) {
BaseDao dao = params[0];
List<CategorysEntity> categorys = new ArrayList<CategorysEntity>();
Map<String, Object> map = new HashMap<String, Object>();
if (dao instanceof TopDao) {
mTag = 0;
if ((categoryList = topDao.mapperJson(mUseCache)) != null) {
categorys = topDao.getCategorys();
map.put("tabs", categorys);
map.put("list", categoryList);
}
} else if (dao instanceof BlogsDao) {
mTag = 3;
if ((responseData = blogsDao.mapperJson(mUseCache)) != null) {
categoryList = (List) responseData.getList();
categorys = responseData.getCategorys();
map.put("tabs", categorys);
map.put("list", categoryList);
}
} else if (dao instanceof NewsDao) {
mTag = 1;
if ((newsResponseData = newsDao.mapperJson(mUseCache)) != null) {
categoryList = (List) newsResponseData.getList();
categorys = newsResponseData.getCategorys();
map.put("tabs", categorys);
map.put("list", categoryList);
}
} else if (dao instanceof WikiDao) {
mTag = 2;
if ((wikiResponseData = wikiDao.mapperJson(mUseCache)) != null) {
categoryList = (List) wikiResponseData.getList();
categorys = wikiResponseData.getCategorys();
map.put("tabs", categorys);
map.put("list", categoryList);
}
} else {
return null;
}
return map;
}
示例5: initClass
import cn.eoe.app.biz.WikiDao; //导入依赖的package包/类
private void initClass() {
blogsDao = new BlogsDao(this);
newsDao = new NewsDao(this);
wikiDao = new WikiDao(this);
topDao = new TopDao(this);
}
示例6: doInBackground
import cn.eoe.app.biz.WikiDao; //导入依赖的package包/类
@Override
protected Map<String, Object> doInBackground(BaseDao... params) {
BaseDao dao = params[0];
List<CategorysEntity> categorys = new ArrayList<CategorysEntity>();
Map<String, Object> map = new HashMap<String, Object>();
if (dao instanceof TopDao) {
mTag = 0;
if ((categoryList = topDao.mapperJson(mUseCache)) != null) {
categorys = topDao.getCategorys();
map.put("tabs", categorys);
map.put("list", categoryList);
}
} else if (dao instanceof BlogsDao) {
mTag = 3;
if ((responseData = blogsDao.mapperJson(mUseCache)) != null) {
categoryList = (List) responseData.getList();
categorys = responseData.getCategorys();
map.put("tabs", categorys);
map.put("list", categoryList);
}
} else if (dao instanceof NewsDao) {
mTag = 1;
if ((newsResponseData = newsDao.mapperJson(mUseCache)) != null) {
categoryList = (List) newsResponseData.getList();
categorys = newsResponseData.getCategorys();
map.put("tabs", categorys);
map.put("list", categoryList);
}
} else if (dao instanceof WikiDao) {
mTag = 2;
if ((wikiResponseData = wikiDao.mapperJson(mUseCache)) != null) {
categoryList = (List) wikiResponseData.getList();
categorys = wikiResponseData.getCategorys();
map.put("tabs", categorys);
map.put("list", categoryList);
}
} else {
return null;
}
return map;
}