DataSourcePayload

A payload for a DataSourceAction.

Table below describes, when certain payload should be used.

PayloadEvent
DataSourcePayload.StartedBefore DataSource is called
DataSourcePayload.SuccessAfter successful DataSource call
DataSourcePayload.FailureAfter unsuccessful DataSource call

Types

Link copied to clipboard
data class Failure<Request, Response>(val request: Request, val error: Throwable) : DataSourcePayload<Request, Response>
Link copied to clipboard
Link copied to clipboard
data class Success<Request, Response>(val request: Request, val response: Response) : DataSourcePayload<Request, Response>

Properties

Link copied to clipboard
abstract val request: Request

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard