DataSource
Functions
Extensions
Link copied to clipboard
fun <Request, OriginRequest, Response> DataSource<OriginRequest, Response>.adaptRequest(transform: suspend (Request) -> OriginRequest): DataSource<Request, Response>
Adapts a DataSource with transform to accept a Request instead of a OriginRequest.
Link copied to clipboard
fun <Request, OriginResponse, Response> DataSource<Request, OriginResponse>.adaptResponse(transform: suspend (OriginResponse) -> Response): DataSource<Request, Response>
Adapts a DataSource with transform to return a Response instead of a OriginResponse.