use of cn.liuyin.manhua.data.bean.ClassListBean in project Manhua by ag2s20150909.
the class HomeActivity method getType.
public void getType(final int classId) {
new Thread(new Runnable() {
@Override
public void run() {
API api = new API();
try {
SearchResult d = new SearchResult();
ClassListBean data = gson.fromJson(api.getCateDetail(classId, 1, 100), ClassListBean.class);
d.add(data);
mHander.obtainMessage(1, d).sendToTarget();
} catch (Exception e) {
FileTool.writeError(e);
mHander.obtainMessage(0, e.getLocalizedMessage()).sendToTarget();
}
}
}).start();
}
Aggregations