Last active
March 28, 2020 23:31
-
-
Save furkanakdemir/e38c6b40101680acaff7473315662899 to your computer and use it in GitHub Desktop.
An interface to bidirectionally map domain and raw
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment