// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/source/IxcDataSource.java
// public interface IxcDataSource {
// 
//     interface JxListLoadCallBack {
//         void onSuccess(xcJxResponse response);
// 
//         void onError(String msg);
//     }
// 
//     interface FxListLoadCallBack {
//         void onSuccess(xcFxResponse response);
// 
//         void onError(String msg);
//     }
// 
//     interface FeedListLoadCallBack {
//         void onSuccess(xcFeedResponse response);
// 
//         void onError(String msg);
//     }
//     interface DetailLoadCallBack {
//         void onSuccess(xcDetailResponse response);
// 
//         void onError(String msg);
//     }
// }
// 
// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/source/xcDetailRepository.java
// public class xcDetailRepository {
// 
//     public void load(Context context, final IxcDataSource.DetailLoadCallBack callback) {
//         String dummy = readDummy(context);
//         try {
//             callback.onSuccess(new Gson().fromJson(dummy, xcDetailResponse.class));
//         } catch (Exception e) {
//             callback.onError("dd");
//         }
//     }
// 
//     public void loadBody(Context context) {
//         String Result = "";
//         try {
//             InputStreamReader inputReader = new InputStreamReader(context.getAssets().open("xc_body_dummy.txt"));
//             BufferedReader bufReader = new BufferedReader(inputReader);
//             String line = "";
//             while ((line = bufReader.readLine()) != null) {
//                 Result += line;
//             }
//         } catch (Exception e) {
//             e.printStackTrace();
//         }
// 
//         List<xcArticleSection> body = new Gson().fromJson(Result, new TypeToken<List<xcArticleSection>>() {
//         }.getType());
// 
//         int count=body.size();
//     }
// 
//     private String readDummy(Context context) {
//         try {
//             InputStreamReader inputReader = new InputStreamReader(context.getAssets().open("xc_detail_dummy.txt"));
//             BufferedReader bufReader = new BufferedReader(inputReader);
//             String line="";
//             String Result="";
//             while((line = bufReader.readLine()) != null) {
//                 Result += line;
//             }
//             return Result;
//         } catch (Exception e) {
//             e.printStackTrace();
//         }
//         return null;
//     }
// }


import android.content.Context;
import com.huijimuhe.commonlayout.data.xc.source.IxcDataSource;
import com.huijimuhe.commonlayout.data.xc.source.xcDetailRepository;
import com.huijimuhe.commonlayout.data.xc.xcDetailResponse;
package com.huijimuhe.commonlayout.presenter.xc;



/**
 * Created by Huijimuhe on 2016/6/26.
 * This is a part of Group
 * enjoy
 */
public class xcDetailPresenter implements xcDetailContract.Presenter {

    private xcDetailRepository mRepo;
    private xcDetailContract.View mView;

    public xcDetailPresenter(xcDetailContract.View view, xcDetailRepository repo) {
        this.mView = view;
        this.mRepo = repo;
    }

    @Override
    public void start() {
    }

    @Override
    public void load(Context context) {
// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/source/IxcDataSource.java
// public interface IxcDataSource {
// 
//     interface JxListLoadCallBack {
//         void onSuccess(xcJxResponse response);
// 
//         void onError(String msg);
//     }
// 
//     interface FxListLoadCallBack {
//         void onSuccess(xcFxResponse response);
// 
//         void onError(String msg);
//     }
// 
//     interface FeedListLoadCallBack {
//         void onSuccess(xcFeedResponse response);
// 
//         void onError(String msg);
//     }
//     interface DetailLoadCallBack {
//         void onSuccess(xcDetailResponse response);
// 
//         void onError(String msg);
//     }
// }
// 
// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/source/xcDetailRepository.java
// public class xcDetailRepository {
// 
//     public void load(Context context, final IxcDataSource.DetailLoadCallBack callback) {
//         String dummy = readDummy(context);
//         try {
//             callback.onSuccess(new Gson().fromJson(dummy, xcDetailResponse.class));
//         } catch (Exception e) {
//             callback.onError("dd");
//         }
//     }
// 
//     public void loadBody(Context context) {
//         String Result = "";
//         try {
//             InputStreamReader inputReader = new InputStreamReader(context.getAssets().open("xc_body_dummy.txt"));
//             BufferedReader bufReader = new BufferedReader(inputReader);
//             String line = "";
//             while ((line = bufReader.readLine()) != null) {
//                 Result += line;
//             }
//         } catch (Exception e) {
//             e.printStackTrace();
//         }
// 
//         List<xcArticleSection> body = new Gson().fromJson(Result, new TypeToken<List<xcArticleSection>>() {
//         }.getType());
// 
//         int count=body.size();
//     }
// 
//     private String readDummy(Context context) {
//         try {
//             InputStreamReader inputReader = new InputStreamReader(context.getAssets().open("xc_detail_dummy.txt"));
//             BufferedReader bufReader = new BufferedReader(inputReader);
//             String line="";
//             String Result="";
//             while((line = bufReader.readLine()) != null) {
//                 Result += line;
//             }
//             return Result;
//         } catch (Exception e) {
//             e.printStackTrace();
//         }
//         return null;
//     }
// }


// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/presenter/xc/xcDetailPresenter.java
import android.content.Context;
import com.huijimuhe.commonlayout.data.xc.source.IxcDataSource;
import com.huijimuhe.commonlayout.data.xc.source.xcDetailRepository;
import com.huijimuhe.commonlayout.data.xc.xcDetailResponse;

package com.huijimuhe.commonlayout.presenter.xc;



/**
 * Created by Huijimuhe on 2016/6/26.
 * This is a part of Group
 * enjoy
 */
public class xcDetailPresenter implements xcDetailContract.Presenter {

    private xcDetailRepository mRepo;
    private xcDetailContract.View mView;

    public xcDetailPresenter(xcDetailContract.View view, xcDetailRepository repo) {
        this.mView = view;
        this.mRepo = repo;
    }

    @Override
    public void start() {
    }

    @Override
    public void load(Context context) {
        mRepo.load(context, new IxcDataSource.DetailLoadCallBack() {