Skip to content

Instantly share code, notes, and snippets.

@sliskiCode
Last active November 27, 2017 09:00
Show Gist options
  • Select an option

  • Save sliskiCode/a982abbbacf516859cd316a589dc3033 to your computer and use it in GitHub Desktop.

Select an option

Save sliskiCode/a982abbbacf516859cd316a589dc3033 to your computer and use it in GitHub Desktop.
6 magic sugars that can make your Kotlin codebase happier #1
sealed class Response
data class Success(val body: String): Response()
data class Error(val code: Int, val message: String): Response()
object Timeout: Response()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment