LanguageString.kt 269 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.memobase.model

data class LanguageString(
    val de: String,
    val fr: String,
    val it: String
) {
    fun get(lang: String): String {
        return when (lang) {
            "de" -> de
            "fr" -> fr
            else -> it
        }
    }
}