Created
January 30, 2018 10:50
-
-
Save thenixan/48ec70818ac64bbaefa1033bd5d7f87b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Api { | |
@GET("thenixan-blogposts/json-streaming-data/master/one-large-file.json") | |
fun loadDataInUsualWay(): Single<DataHolder> | |
} | |
val service = Retrofit.Builder() | |
.baseUrl("https://raw.githubusercontent.com/") | |
.addCallAdapterFactory(RxJava2CallAdapterFactory.create()) | |
.addConverterFactory(GsonConverterFactory.create()) | |
.build() | |
.create(Api::class.java) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment