Created
August 20, 2019 21:52
-
-
Save wangerekaharun/6b8b233e4254d0e0895e8b097da2bcee to your computer and use it in GitHub Desktop.
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
fun setStatus(status : String) = when(status){ | |
"active" -> 1 | |
"inActive" -> 2 | |
"notSet" -> 3 | |
else -> 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment