-
Notifications
You must be signed in to change notification settings - Fork 268
如何支持Retrofit Api
Tamic (码小白) edited this page Jun 23, 2017
·
1 revision
novate默认的BaseApiService
无法满足你的需求时,novate同样支持你自己的ApiService
。
MyApi
public interface MyApi {
@GET("url")
Observable<MyBean> getdata(@QueryMap Map<String, String> maps);
}
调用Call()
MyApi myApi = novate.create(MyApi.class);
novate.call(myApi.getdata(parameters),
new BaseSubscriber<MyBean>{
'''''''
});
}