Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created Aug 25, 2019
Embed
What would you like to do?
sealed class EmailAddress
data class ValidEmailAddress(val value: String) : EmailAddress()
data class InvalidEmailAddress(val value: String, val error: String): EmailAddress()
sealed class Password
data class ValidPassword(val value: String) : Password()
data class InvalidPassword(val value: String, val error: String): Password()
data class Token(val value: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment