// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/xcFxResponse.java
// public class xcFxResponse {
// 
//     private List<xcFeature> features;
// 
//     public List<xcFeature> getFeatures() {
//         return features;
//     }
// 
//     public void setFeatures(List<xcFeature> features) {
//         this.features = features;
//     }
// }
// 
// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/xcJxResponse.java
// public class xcJxResponse {
// 
//     private List<xcBanner> ads_top;
//     private List<xcSale> sales;
//     private List<xcArticle> week_praise;
//     private List<xcArticleGroup> subjects;
//     private List<xcArticle> foods;
//     private List<xcArticle> plays;
// 
//     public List<xcBanner> getAds_top() {
//         return ads_top;
//     }
// 
//     public void setAds_top(List<xcBanner> ads_top) {
//         this.ads_top = ads_top;
//     }
// 
//     public List<xcSale> getSales() {
//         return sales;
//     }
// 
//     public void setSales(List<xcSale> sales) {
//         this.sales = sales;
//     }
// 
//     public List<xcArticle> getWeek_praise() {
//         return week_praise;
//     }
// 
//     public void setWeek_praise(List<xcArticle> week_praise) {
//         this.week_praise = week_praise;
//     }
// 
//     public List<xcArticleGroup> getSubjects() {
//         return subjects;
//     }
// 
//     public void setSubjects(List<xcArticleGroup> subjects) {
//         this.subjects = subjects;
//     }
// 
//     public List<xcArticle> getFoods() {
//         return foods;
//     }
// 
//     public void setFoods(List<xcArticle> foods) {
//         this.foods = foods;
//     }
// 
//     public List<xcArticle> getPlays() {
//         return plays;
//     }
// 
//     public void setPlays(List<xcArticle> plays) {
//         this.plays = plays;
//     }
// }


import android.content.Context;
import com.google.gson.Gson;
import com.huijimuhe.commonlayout.data.xc.xcFxResponse;
import com.huijimuhe.commonlayout.data.xc.xcJxResponse;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
package com.huijimuhe.commonlayout.data.xc.source;





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

    public void load(Context context, final IxcDataSource.FxListLoadCallBack callback){
        String dummy=readDummy(context);
        try {
            JSONObject json=new JSONObject(dummy);
            callback.onSuccess(new Gson().fromJson(json.getString("data"),xcFxResponse.class));
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    private String readDummy(Context context){
        try {
            InputStreamReader inputReader = new InputStreamReader(context.getAssets().open("xc_fx_list_dummy.txt"));
            BufferedReader bufReader = new BufferedReader(inputReader);
            String line="";
            String Result="";
            while((line = bufReader.readLine()) != null) {
// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/xcFxResponse.java
// public class xcFxResponse {
// 
//     private List<xcFeature> features;
// 
//     public List<xcFeature> getFeatures() {
//         return features;
//     }
// 
//     public void setFeatures(List<xcFeature> features) {
//         this.features = features;
//     }
// }
// 
// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/xcJxResponse.java
// public class xcJxResponse {
// 
//     private List<xcBanner> ads_top;
//     private List<xcSale> sales;
//     private List<xcArticle> week_praise;
//     private List<xcArticleGroup> subjects;
//     private List<xcArticle> foods;
//     private List<xcArticle> plays;
// 
//     public List<xcBanner> getAds_top() {
//         return ads_top;
//     }
// 
//     public void setAds_top(List<xcBanner> ads_top) {
//         this.ads_top = ads_top;
//     }
// 
//     public List<xcSale> getSales() {
//         return sales;
//     }
// 
//     public void setSales(List<xcSale> sales) {
//         this.sales = sales;
//     }
// 
//     public List<xcArticle> getWeek_praise() {
//         return week_praise;
//     }
// 
//     public void setWeek_praise(List<xcArticle> week_praise) {
//         this.week_praise = week_praise;
//     }
// 
//     public List<xcArticleGroup> getSubjects() {
//         return subjects;
//     }
// 
//     public void setSubjects(List<xcArticleGroup> subjects) {
//         this.subjects = subjects;
//     }
// 
//     public List<xcArticle> getFoods() {
//         return foods;
//     }
// 
//     public void setFoods(List<xcArticle> foods) {
//         this.foods = foods;
//     }
// 
//     public List<xcArticle> getPlays() {
//         return plays;
//     }
// 
//     public void setPlays(List<xcArticle> plays) {
//         this.plays = plays;
//     }
// }


// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/source/xcFxListRepository.java
import android.content.Context;
import com.google.gson.Gson;
import com.huijimuhe.commonlayout.data.xc.xcFxResponse;
import com.huijimuhe.commonlayout.data.xc.xcJxResponse;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;

package com.huijimuhe.commonlayout.data.xc.source;





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

    public void load(Context context, final IxcDataSource.FxListLoadCallBack callback){
        String dummy=readDummy(context);
        try {
            JSONObject json=new JSONObject(dummy);
            callback.onSuccess(new Gson().fromJson(json.getString("data"),xcFxResponse.class));
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    private String readDummy(Context context){
        try {
            InputStreamReader inputReader = new InputStreamReader(context.getAssets().open("xc_fx_list_dummy.txt"));
            BufferedReader bufReader = new BufferedReader(inputReader);
            String line="";
            String Result="";
            while((line = bufReader.readLine()) != null) {
                Result += line;