Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

基于RxJava+Retrofit+OkHTTP3.0封装的网络请求框架,支持多域名、多环境、多模块

Notifications You must be signed in to change notification settings

zhx3511/ZXNetWork

Repository files navigation

ZXNetWork

基于RxJava+Retrofit+OkHTTP3.0封装的网络请求框架,支持多域名、多环境、多模块

使用方法:

例子:

 NewsNetWorkApi.getInstence().toSubscribe(NewsNetWorkApi.getInstence().serviceApi(NewsServices.class)
 .gettoutiao("top", "28ae2eb3e23ae6sb4e072c8bcc44f6af5"),
 new OnHttpCallBack<NewsNetRequestResult<List<Toutiao>>>() {
 @Override
 public void onSuccessful(NewsNetRequestResult<List<Toutiao>> response) {
 Log.d("Tag", response.toString());
 }
 @Override
 public void onFaild(String errorMsg) {
 Log.d("Tag", errorMsg);
 }
 });

About

基于RxJava+Retrofit+OkHTTP3.0封装的网络请求框架,支持多域名、多环境、多模块

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /