ISupportResponseMapper

interface ISupportResponseMapper<in S, D>

Contract for handling network responses to mapping flow

Since

v1.1.0

Inheritors

Functions

Link copied to clipboard
abstract suspend fun onResponseDatabaseInsert(mappedData: D)

Inserts the given object into the implemented room database,

Link copied to clipboard
abstract suspend fun onResponseMapFrom(source: S): D

Creates mapped objects and handles the database operations which may be required to map various objects,