This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Raw | |
interface Domain | |
interface RemoteMapper<D : Domain, R : Raw> { | |
fun mapRaw(raw: R): D | |
fun mapDomain(domain: D): R | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Entity | |
interface Domain | |
interface LocalMapper<D : Domain, E : Entity> { | |
fun mapEntity(entity: E): Domain | |
fun mapDomain(domain: D): Entity | |
} |