-
-
Save Ibrahimhass/2cef2cc09cb90762d979f878588d7ee0 to your computer and use it in GitHub Desktop.
This file contains 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
enum class Category { | |
GROCERY, | |
UTILITY, | |
RENT, | |
TRANSPORTATION, | |
DINE_OUT, | |
ENTERTAINMENT; | |
companion object { | |
fun getAsList(): List<Category> { | |
return values().toList() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment