Repeat request by Retrofit and Rx
<p>I have API that returns the data by page, something like this:</p>

<pre><code>{
   "count": 100,
   "offset": 0,
   "limit": 25,
   "result": [{}, {}, {}...]
}
</code></pre>

<p>I need to get all pages - All data (to execute queries with a different "offset":). </p>

<pre><code>      Observable&lt;MyResponse&gt; call = RetrofitProvider.get().create(MyApi.class).getData(0, 25); // limit and offset
    call.observeOn(AndroidSchedulers.mainThread())
            .subscribeOn(Schedulers.newThread())
            .doOnNext(&lt;saving data&gt;)
            .subscribe(result -&gt; {                   
            }, error -&gt; {             
            });
</code></pre>

<p>I'm trying to use RxAndroid and Retrofit. What is the best way this?</p>