// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/xcFeedResponse.java
// public class xcFeedResponse {
// 
//     private List<xcFeed> contents;
// 
//     public List<xcFeed> getContents() {
//         return contents;
//     }
// 
//     public void setContents(List<xcFeed> contents) {
//         this.contents = contents;
//     }
// }
// 
// 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;
//     }
// }


import android.content.Context;
import com.google.gson.Gson;
import com.huijimuhe.commonlayout.data.xc.xcFeedResponse;
import com.huijimuhe.commonlayout.data.xc.xcFxResponse;
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 xcFeedListRepository {

    public void load(Context context, final IxcDataSource.FeedListLoadCallBack callback){
        String dummy=readDummy(context);
        try {
            JSONObject json=new JSONObject(dummy);
// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/xcFeedResponse.java
// public class xcFeedResponse {
// 
//     private List<xcFeed> contents;
// 
//     public List<xcFeed> getContents() {
//         return contents;
//     }
// 
//     public void setContents(List<xcFeed> contents) {
//         this.contents = contents;
//     }
// }
// 
// 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/source/xcFeedListRepository.java
import android.content.Context;
import com.google.gson.Gson;
import com.huijimuhe.commonlayout.data.xc.xcFeedResponse;
import com.huijimuhe.commonlayout.data.xc.xcFxResponse;
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 xcFeedListRepository {

    public void load(Context context, final IxcDataSource.FeedListLoadCallBack callback){
        String dummy=readDummy(context);
        try {
            JSONObject json=new JSONObject(dummy);
            callback.onSuccess(new Gson().fromJson(json.getString("data"),xcFeedResponse.class));