Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- disposables.add(documentsUseCase.getDocs(filter, offset)
- .onErrorResumeNext {
- // authProvider.setEmpty()
- authProcess()
- return@onErrorResumeNext SingleSource { observer -> observer.onError(it) }
- }
- .subscribeOn(Schedulers.io())
- .observeOn(AndroidSchedulers.mainThread())
- .subscribe(
- {
- documentsInfoList = it.copy()
- docInfoList.addAll(it.docs)
- documentsInfoList.docs = docInfoList
- viewMVP?.onLoadDocumentsSuccess(documentsInfoList)
- restoreCacheRequest()
- //TODO("FOR TESTING")
- //checkGson(it.docs)
- },
- {
- viewMVP?.onLoadError("Ошибка загрузки документов")
- timberError(it)
- })
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement