Skip to content

BoomBone/DDNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin Retrofit2+Rxjava2 网络请求封装

简单使用方法示例

 RxRestClient.builder()
                .url("http://news.baidu.com/")
                .build()
                .get()
                .execute(object : Observer<String> {
                    override fun onSubscribe(d: Disposable) {

                    }

                    override fun onError(e: Throwable) {
                    }

                    override fun onComplete() {
                    }

                    override fun onNext(t: String) {
                        Log.e("main","网络请求成功")
                        toast("网络请求成功")
                    }
                })

About

Kotlin Retrofit+Rxjava2简单封装

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages