Created
February 8, 2024 02:04
-
-
Save faizul14/16b6b7599354df987c6c29c0f25ffe5c 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 ApiResponse<out R> { | |
data class Success<out T>(val data: T) : ApiResponse<T>() | |
data class Error(val errorMessage: String) : ApiResponse<Nothing>() | |
object Empty : ApiResponse<Nothing>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment