Last active
January 7, 2021 07:48
-
-
Save lucapiccinelli/fd31805245e45633838ee6f6090571b2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class PasswordResetService(){ | |
fun send(email: Email.Verified): Unit = TODO("send reset") | |
} | |
class EmailVerificationService(){ | |
fun verify(unverifiedEmail: Email.Unverified): Email.Verified? = | |
if(incredibleConditions())Email.Verified(unverifiedEmail) else null | |
private fun incredibleConditions() = true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment