// Path: app/src/main/java/me/zsj/interessant/RetrofitFactory.java
// public class RetrofitFactory {
// 
//     private static final Object object = new Object();
//     private volatile static WorkerRetrofit retrofit;
// 
//     public static WorkerRetrofit getRetrofit() {
//         synchronized (object) {
//             if (retrofit == null) {
//                 retrofit = new WorkerRetrofit();
//             }
//             return retrofit;
//         }
//     }
// }
// 
// Path: app/src/main/java/me/zsj/interessant/api/InterestingApi.java
// public interface InterestingApi {
// 
//     @GET("v3/videos?num=10")
//     Flowable<Interesting> getInteresting(
//             @Query("start") int start, @Query("categoryId") int categoryId,
//             @Query("strategy") String strategy);
// 
//     @GET("v3/tag/videos")
//     Flowable<Interesting> related(
//             @Query("start") int start, @Query("tagId") int id,
//             @Query("strategy") String strategy);
// 
//     @GET("v3/pgc/videos")
//     Flowable<Interesting> relatedHeader(
//             @Query("start") int start, @Query("pgcId") int id,
//             @Query("strategy") String strategy);
// 
//     @GET("v3/categories/detail")
//     Flowable<Find> findVideo(@Query("id") int id);
// 
//     @GET("v3/categories/videoList")
//     Flowable<Interesting> videoList(@Query("id") int id, @Query("start") int start,
//                                       @Query("strategy") String strategy);
// 
// }
// 
// Path: app/src/main/java/me/zsj/interessant/model/Interesting.java
// public class Interesting {
// 
//     public List<ItemList> itemList;
// 
// }
// 
// Path: app/src/main/java/me/zsj/interessant/model/ItemList.java
// public class ItemList implements Parcelable {
// 
//     public String type;
//     public Data data;
// 
//     protected ItemList(Parcel in) {
//         type = in.readString();
//         data = in.readParcelable(Data.class.getClassLoader());
//     }
// 
//     public static final Creator<ItemList> CREATOR = new Creator<ItemList>() {
//         @Override
//         public ItemList createFromParcel(Parcel in) {
//             return new ItemList(in);
//         }
// 
//         @Override
//         public ItemList[] newArray(int size) {
//             return new ItemList[size];
//         }
//     };
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(type);
//         dest.writeParcelable(data, flags);
//     }
// 
// }


import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.trello.rxlifecycle2.components.support.RxFragment;
import java.util.List;
import io.reactivex.FlowableTransformer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import me.zsj.interessant.R;
import me.zsj.interessant.RetrofitFactory;
import me.zsj.interessant.api.InterestingApi;
import me.zsj.interessant.model.Interesting;
import me.zsj.interessant.model.ItemList;

package me.zsj.interessant.interesting;





/**
 * @author zsj
 */

public class ItemFragment extends RxFragment {

    RecyclerView list;
    LinearLayoutManager layoutManager;

    InterestingApi interestingApi;
    int start = 0;
    Activity context;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        this.context = (Activity) context;
    }

    @Nullable @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.interesting_list_fragment, container, false);
        list = (RecyclerView) view.findViewById(R.id.recycler_view);
        return view;
    }

    @Override

// Path: app/src/main/java/me/zsj/interessant/RetrofitFactory.java
// public class RetrofitFactory {
// 
//     private static final Object object = new Object();
//     private volatile static WorkerRetrofit retrofit;
// 
//     public static WorkerRetrofit getRetrofit() {
//         synchronized (object) {
//             if (retrofit == null) {
//                 retrofit = new WorkerRetrofit();
//             }
//             return retrofit;
//         }
//     }
// }
// 
// Path: app/src/main/java/me/zsj/interessant/api/InterestingApi.java
// public interface InterestingApi {
// 
//     @GET("v3/videos?num=10")
//     Flowable<Interesting> getInteresting(
//             @Query("start") int start, @Query("categoryId") int categoryId,
//             @Query("strategy") String strategy);
// 
//     @GET("v3/tag/videos")
//     Flowable<Interesting> related(
//             @Query("start") int start, @Query("tagId") int id,
//             @Query("strategy") String strategy);
// 
//     @GET("v3/pgc/videos")
//     Flowable<Interesting> relatedHeader(
//             @Query("start") int start, @Query("pgcId") int id,
//             @Query("strategy") String strategy);
// 
//     @GET("v3/categories/detail")
//     Flowable<Find> findVideo(@Query("id") int id);
// 
//     @GET("v3/categories/videoList")
//     Flowable<Interesting> videoList(@Query("id") int id, @Query("start") int start,
//                                       @Query("strategy") String strategy);
// 
// }
// 
// Path: app/src/main/java/me/zsj/interessant/model/Interesting.java
// public class Interesting {
// 
//     public List<ItemList> itemList;
// 
// }
// 
// Path: app/src/main/java/me/zsj/interessant/model/ItemList.java
// public class ItemList implements Parcelable {
// 
//     public String type;
//     public Data data;
// 
//     protected ItemList(Parcel in) {
//         type = in.readString();
//         data = in.readParcelable(Data.class.getClassLoader());
//     }
// 
//     public static final Creator<ItemList> CREATOR = new Creator<ItemList>() {
//         @Override
//         public ItemList createFromParcel(Parcel in) {
//             return new ItemList(in);
//         }
// 
//         @Override
//         public ItemList[] newArray(int size) {
//             return new ItemList[size];
//         }
//     };
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(type);
//         dest.writeParcelable(data, flags);
//     }
// 
// }


// Path: app/src/main/java/me/zsj/interessant/interesting/ItemFragment.java
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.trello.rxlifecycle2.components.support.RxFragment;
import java.util.List;
import io.reactivex.FlowableTransformer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import me.zsj.interessant.R;
import me.zsj.interessant.RetrofitFactory;
import me.zsj.interessant.api.InterestingApi;
import me.zsj.interessant.model.Interesting;
import me.zsj.interessant.model.ItemList;

package me.zsj.interessant.interesting;





/**
 * @author zsj
 */

public class ItemFragment extends RxFragment {

    RecyclerView list;
    LinearLayoutManager layoutManager;

    InterestingApi interestingApi;
    int start = 0;
    Activity context;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        this.context = (Activity) context;
    }

    @Nullable @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.interesting_list_fragment, container, false);
        list = (RecyclerView) view.findViewById(R.id.recycler_view);
        return view;
    }

    @Override

    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
