ubu
01/29/2019, 9:26 AMRetrofit
request + Rx
.
data class Response(
...
val hasNextPage : Boolean,
val nextPageId : Int?
)
fun makeRequest(val nextPageId : Int) : Single<Response>
I would like to make requests until I receive hasNextPage == false
in response model. Is there a way to do that in a reactive way without recursion?
Any help will be appreciated.