草庐IT

PlaceDetailResult

全部标签

android - 多个请求进行改造以合并结果

我正在使用改造(1.9)并尝试弄清楚如何调用2个API并合并结果。我想当最后一个api完成返回响应时应该合并结果......我该怎么做?更新,根据Antons的回答,我尝试了以下方法:添加到gradle:compile'io.reactivex:rxjava:1.0.+'compile'io.reactivex:rxandroid:0.23.+'API接口(interface)@GET("/maps/api/place/details/json")ObservablegetPlacesFrom1(@Query("key")Stringkey,@Query("placeid")Strin