Last active
November 27, 2017 09:00
-
-
Save sliskiCode/a982abbbacf516859cd316a589dc3033 to your computer and use it in GitHub Desktop.
6 magic sugars that can make your Kotlin codebase happier #1
This file contains hidden or 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 | |
| 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