// Path: app/src/main/java/me/yifeiyuan/climb/data/RxResponse.java
// public class RxResponse<T> extends BaseResponse{
//     public T results;
// }
// 
// Path: app/src/main/java/me/yifeiyuan/climb/data/entity/SplashEntity.java
// public class SplashEntity {
//     public String text;
//     public String img;
// }


import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import me.yifeiyuan.climb.data.GankDaily;
import me.yifeiyuan.climb.data.GankResponse;
import me.yifeiyuan.climb.data.RxResponse;
import me.yifeiyuan.climb.data.entity.SplashEntity;
import okhttp3.RequestBody;
import rx.Observable;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Func1;
import rx.schedulers.Schedulers;
package me.yifeiyuan.climb.network.api;




/**
 * Created by 程序亦非猿 on 16/7/1.
 */
public class Api {

    private final GankApi mGankApi;
    private final ZhiHuApi mZhiHuApi;
    private final WeatherApi mWeatherApi;

    @Inject
    protected Api(GankApi gankApi,ZhiHuApi zhiHuApi,WeatherApi weatherApi) {
        mGankApi = gankApi;
        mZhiHuApi = zhiHuApi;
        mWeatherApi = weatherApi;
    }

    // TODO: 16/7/29 compose

    public Observable<GankResponse> getAndroid(int page) {
        return wrap(mGankApi.getAndroid(page));
    }

    public Observable<GankResponse> getIos(int page) {
        return wrap(mGankApi.getIos(page));
    }

//    public Observable<List<GIosEntity>> getIos(int page) {
//        return apply(mGankApi.getIos(page));
//    }

    public Observable<GankResponse> getMeizi(int page) {
        return wrap(mGankApi.getMeizi(page));
    }

    public Observable<GankDaily> getDaily(int year, int month, int day) {
        return mGankApi.getDaily(year, month, day);
    }

// Path: app/src/main/java/me/yifeiyuan/climb/data/RxResponse.java
// public class RxResponse<T> extends BaseResponse{
//     public T results;
// }
// 
// Path: app/src/main/java/me/yifeiyuan/climb/data/entity/SplashEntity.java
// public class SplashEntity {
//     public String text;
//     public String img;
// }


// Path: app/src/main/java/me/yifeiyuan/climb/network/api/Api.java
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import me.yifeiyuan.climb.data.GankDaily;
import me.yifeiyuan.climb.data.GankResponse;
import me.yifeiyuan.climb.data.RxResponse;
import me.yifeiyuan.climb.data.entity.SplashEntity;
import okhttp3.RequestBody;
import rx.Observable;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Func1;
import rx.schedulers.Schedulers;

package me.yifeiyuan.climb.network.api;




/**
 * Created by 程序亦非猿 on 16/7/1.
 */
public class Api {

    private final GankApi mGankApi;
    private final ZhiHuApi mZhiHuApi;
    private final WeatherApi mWeatherApi;

    @Inject
    protected Api(GankApi gankApi,ZhiHuApi zhiHuApi,WeatherApi weatherApi) {
        mGankApi = gankApi;
        mZhiHuApi = zhiHuApi;
        mWeatherApi = weatherApi;
    }

    // TODO: 16/7/29 compose

    public Observable<GankResponse> getAndroid(int page) {
        return wrap(mGankApi.getAndroid(page));
    }

    public Observable<GankResponse> getIos(int page) {
        return wrap(mGankApi.getIos(page));
    }

//    public Observable<List<GIosEntity>> getIos(int page) {
//        return apply(mGankApi.getIos(page));
//    }

    public Observable<GankResponse> getMeizi(int page) {
        return wrap(mGankApi.getMeizi(page));
    }

    public Observable<GankDaily> getDaily(int year, int month, int day) {
        return mGankApi.getDaily(year, month, day);
    }

    public Observable<SplashEntity> getWel() {