RxJavaRetrofitDemo icon indicating copy to clipboard operation
RxJavaRetrofitDemo copied to clipboard

Demo for RxJava2+Retrofit2

Results 1 RxJavaRetrofitDemo issues
Sort by recently updated
recently updated
newest added

我也是刚接触这个rxjava ,想封装一个简单的,感觉你这个挺好的。 你是什么思路,应该可以把 private static Gson buildGson() { return new GsonBuilder() .serializeNulls() .setFieldNamingPolicy(FieldNamingPolicy.IDENTITY) // 此处可以添加Gson 自定义TypeAdapter .registerTypeAdapter(User.class, new UserTypeAdapter()) .create(); } 这段代码抽离出来吧。能简单说一下这个地方为什么这样写吗?