//package com.hc.lib.http;
//
//import retrofit2.Retrofit;
//import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
//import retrofit2.converter.gson.GsonConverterFactory;
//
//public class RetrofitSingleton {
//
//    private static RetrofitSingleton instance;
//
//    private Retrofit.Builder retrofitBuilder;
//
//    public static RetrofitSingleton getInstance() {
//        if (instance == null) {
//            instance = new RetrofitSingleton();
//        }
//        return instance;
//    }
//
//    private RetrofitSingleton() {
//        retrofitBuilder = new Retrofit.Builder()
//                .client(OkHttpClientSingleton.getInstance().getHttpClient())
//                .addCallAdapterFactory(RxJava2CallAdapterFactory.create())
//                .addConverterFactory(GsonConverterFactory.create());
//    }
//
//    public Retrofit.Builder getRetrofit() {
//        return retrofitBuilder;
//    }
//}
