// Path: app/src/main/java/com/ittianyu/pocenter/common/api/RemoteApi.java
// public interface RemoteApi {
//     interface Type {
//         int OTHER = 0;
//         int WEB = 1;
//         int WE_CHAT = 2;
//         int HTML5 = 3;
//         int APP = 4;
//         int INTELLIGENT_HARDWARE = 5;
//         int DESKTOP_APP = 6;
//         int BIG_DATA = 7;
//         int SYSTEM = 8;
//         int SDK_API = 9;
//         int ART = 10;
//     }
//     interface Status {
//         int RECRUITING = 0;
//         int RECRUITED = 1;
//     }
// 
//     /**
//      * select list according to types status and keywords
//      *
//      * @param start    start index
//      * @param count    select count
//      * @param types    support multiple types
//      * @param status
//      * @param keywords title or description keywords
//      * @return
//      */
//     @GET("list")
//     Observable<List<ProjectBean>> getList(@Query("start") int start, @Query("count") int count,
//                                           @Query("type") int[] types, @Query("status") int status,
//                                           @Query("keyword") String[] keywords);
// }
// 
// Path: app/src/main/java/com/ittianyu/pocenter/common/base/BasePresenter.java
// public class BasePresenter<V extends BaseContract.View>
//         extends MvpNullObjectBasePresenter<V>
//         implements BaseContract.Presenter<V>{
//     protected BaseApplication application;
// 
//     @Override
//     public void attachView(V view) {
//         super.attachView(view);
//         application = (BaseApplication) getView().getApp();
//     }
// 
//     @Override
//     public BaseApplication getApp() {
//         return application;
//     }
// }
// 
// Path: app/src/main/java/com/ittianyu/pocenter/common/bean/ProjectBean.java
// public class ProjectBean {
//     public int id;
//     public String projectId;
//     public String title;
//     public String description;
//     public String price;
//     public int type;
//     public String cycle;
//     public int people;
//     public int status;
//     public Timestamp time;
//     public String reference;
//     public String url;
// 
// 
//     @Override
//     public String toString() {
//         return "ProjectBean{" +
//                 "projectId='" + projectId + '\'' +
//                 ", title='" + title + '\'' +
//                 ", description='" + description + '\'' +
//                 ", price='" + price + '\'' +
//                 ", type=" + type +
//                 ", cycle='" + cycle + '\'' +
//                 ", people=" + people +
//                 ", status=" + status +
//                 ", time=" + time +
//                 ", reference='" + reference + '\'' +
//                 ", url='" + url + '\'' +
//                 '}';
//     }
// }


import com.ittianyu.pocenter.common.api.RemoteApi;
import com.ittianyu.pocenter.common.base.BasePresenter;
import com.ittianyu.pocenter.common.bean.ProjectBean;
import java.util.List;
import io.reactivex.functions.Consumer;
package com.ittianyu.pocenter.features.find;




/**
 * Created by yu on 2017/1/17.
 */

public class FindPresenter extends BasePresenter<FindContract.View> implements FindContract.Presenter {
    private static final int COUNT = 20;

    @Override
    public void loadData(final boolean pullToRefresh) {
        application.getRepertories()
                .getList(0, COUNT, null, RemoteApi.Status.RECRUITING, null, pullToRefresh)
// Path: app/src/main/java/com/ittianyu/pocenter/common/api/RemoteApi.java
// public interface RemoteApi {
//     interface Type {
//         int OTHER = 0;
//         int WEB = 1;
//         int WE_CHAT = 2;
//         int HTML5 = 3;
//         int APP = 4;
//         int INTELLIGENT_HARDWARE = 5;
//         int DESKTOP_APP = 6;
//         int BIG_DATA = 7;
//         int SYSTEM = 8;
//         int SDK_API = 9;
//         int ART = 10;
//     }
//     interface Status {
//         int RECRUITING = 0;
//         int RECRUITED = 1;
//     }
// 
//     /**
//      * select list according to types status and keywords
//      *
//      * @param start    start index
//      * @param count    select count
//      * @param types    support multiple types
//      * @param status
//      * @param keywords title or description keywords
//      * @return
//      */
//     @GET("list")
//     Observable<List<ProjectBean>> getList(@Query("start") int start, @Query("count") int count,
//                                           @Query("type") int[] types, @Query("status") int status,
//                                           @Query("keyword") String[] keywords);
// }
// 
// Path: app/src/main/java/com/ittianyu/pocenter/common/base/BasePresenter.java
// public class BasePresenter<V extends BaseContract.View>
//         extends MvpNullObjectBasePresenter<V>
//         implements BaseContract.Presenter<V>{
//     protected BaseApplication application;
// 
//     @Override
//     public void attachView(V view) {
//         super.attachView(view);
//         application = (BaseApplication) getView().getApp();
//     }
// 
//     @Override
//     public BaseApplication getApp() {
//         return application;
//     }
// }
// 
// Path: app/src/main/java/com/ittianyu/pocenter/common/bean/ProjectBean.java
// public class ProjectBean {
//     public int id;
//     public String projectId;
//     public String title;
//     public String description;
//     public String price;
//     public int type;
//     public String cycle;
//     public int people;
//     public int status;
//     public Timestamp time;
//     public String reference;
//     public String url;
// 
// 
//     @Override
//     public String toString() {
//         return "ProjectBean{" +
//                 "projectId='" + projectId + '\'' +
//                 ", title='" + title + '\'' +
//                 ", description='" + description + '\'' +
//                 ", price='" + price + '\'' +
//                 ", type=" + type +
//                 ", cycle='" + cycle + '\'' +
//                 ", people=" + people +
//                 ", status=" + status +
//                 ", time=" + time +
//                 ", reference='" + reference + '\'' +
//                 ", url='" + url + '\'' +
//                 '}';
//     }
// }


// Path: app/src/main/java/com/ittianyu/pocenter/features/find/FindPresenter.java
import com.ittianyu.pocenter.common.api.RemoteApi;
import com.ittianyu.pocenter.common.base.BasePresenter;
import com.ittianyu.pocenter.common.bean.ProjectBean;
import java.util.List;
import io.reactivex.functions.Consumer;

package com.ittianyu.pocenter.features.find;




/**
 * Created by yu on 2017/1/17.
 */

public class FindPresenter extends BasePresenter<FindContract.View> implements FindContract.Presenter {
    private static final int COUNT = 20;

    @Override
    public void loadData(final boolean pullToRefresh) {
        application.getRepertories()
                .getList(0, COUNT, null, RemoteApi.Status.RECRUITING, null, pullToRefresh)
                .subscribe(new Consumer<List<ProjectBean>>() {