Skip to content

Instantly share code, notes, and snippets.

@wangerekaharun
Created August 20, 2019 21:52
Show Gist options
  • Save wangerekaharun/6b8b233e4254d0e0895e8b097da2bcee to your computer and use it in GitHub Desktop.
Save wangerekaharun/6b8b233e4254d0e0895e8b097da2bcee to your computer and use it in GitHub Desktop.
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