Response
data class Response<TYPE, PROGRESS>(status: Response.Status, data: TYPE?, progress: PROGRESS?, exception: Throwable?)
Content copied to clipboard
A Generic data holder that contains both the data and the status of the process that generates the data.
This is to be used on Observables types such as LiveData or ObservableData.
Constructors
Types
Properties
Extensions
map
Link copied to clipboard
Maps the Response.data from one type to another. Keeps Response.status, Response.progress and Response.exception unchanged.