init
This commit is contained in:
16
app/src/main/java/cc/n0th1ng/tripmoney/utils/Currencies.kt
Normal file
16
app/src/main/java/cc/n0th1ng/tripmoney/utils/Currencies.kt
Normal file
@@ -0,0 +1,16 @@
|
||||
package cc.n0th1ng.tripmoney.utils
|
||||
|
||||
enum class Currencies {
|
||||
PLN,
|
||||
EUR,
|
||||
USD;
|
||||
|
||||
companion object {
|
||||
fun default(): Currencies {
|
||||
return PLN
|
||||
}
|
||||
fun names(): List<String> {
|
||||
return Currencies.entries.map { it.name }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user