Search in sources :

Example 1 with ClassListBean

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();
}
Also used : ClassListBean(cn.liuyin.manhua.data.bean.ClassListBean) API(cn.liuyin.manhua.data.api.API) SearchResult(cn.liuyin.manhua.data.bean.SearchResult)

Aggregations

API (cn.liuyin.manhua.data.api.API)1 ClassListBean (cn.liuyin.manhua.data.bean.ClassListBean)1 SearchResult (cn.liuyin.manhua.data.bean.SearchResult)1