Skip to content

Instantly share code, notes, and snippets.

@Mercandj
Last active April 29, 2024 15:50
Show Gist options
  • Save Mercandj/b97175425abc05b2f074afd111ecf1b2 to your computer and use it in GitHub Desktop.
Save Mercandj/b97175425abc05b2f074afd111ecf1b2 to your computer and use it in GitHub Desktop.
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