Last active
April 29, 2024 15:50
-
-
Save Mercandj/b97175425abc05b2f074afd111ecf1b2 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 Response(open val httpCode: Int) | |
data class Success( | |
override val httpCode: Int, | |
val data: String | |
) : Response(httpCode = httpCode) | |
data class Fail( | |
override val httpCode: Int | |
) : Response(httpCode = httpCode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment