DataSource
Author
skydoves (Jaewoong Eum)
An abstract interface design for data sources.
Types
Link copied to clipboard
A concat strategy for determining to request continuously or stop when the first request got failed.
Functions
Link copied to clipboard
concat an another DataSource and request API calls sequentially. we can determine request continuously the concat DataSource or stop when failed using ConcatStrategy.
Link copied to clipboard
invalidate cached data and retry counts, request again API call.
Link copied to clipboard
abstract fun joinDisposable(disposable: CompositeDisposable): DataSource<T>
Content copied to clipboard
joins onto CompositeDisposable as a disposable.
Link copied to clipboard
abstract fun observeResponse(observer: ResponseObserver<T>): DataSource<T>
Content copied to clipboard
observes a ApiResponse value from the API call request.
Link copied to clipboard
request API call and response to the callback.