Created
January 10, 2021 23:00
-
-
Save hadilq/547cc079c35976207850e754a25db77d to your computer and use it in GitHub Desktop.
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
sealed class Result<T> | |
data class Success<T>(val value: T): Result<T>() | |
data class Failure<T>(val errorMessage: String): Result<T>() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment