Search in sources :

Example 1 with ZhuangbiApi

use of com.rengwuxian.rxjavasamples.network.api.ZhuangbiApi in project RxJavaSamples by rengwuxian.

the class Network method getZhuangbiApi.

public static ZhuangbiApi getZhuangbiApi() {
    if (zhuangbiApi == null) {
        Retrofit retrofit = new Retrofit.Builder().client(okHttpClient).baseUrl("http://www.zhuangbi.info/").addConverterFactory(gsonConverterFactory).addCallAdapterFactory(rxJavaCallAdapterFactory).build();
        zhuangbiApi = retrofit.create(ZhuangbiApi.class);
    }
    return zhuangbiApi;
}
Also used : Retrofit(retrofit2.Retrofit) ZhuangbiApi(com.rengwuxian.rxjavasamples.network.api.ZhuangbiApi)

Aggregations

ZhuangbiApi (com.rengwuxian.rxjavasamples.network.api.ZhuangbiApi)1 Retrofit (retrofit2.Retrofit)1