Format Game

feature/top10
Aurelien Hubert 7 years ago
parent b36d0a582e
commit 872a239236
  1. 5
      app/src/main/java/net/pokeranalytics/android/model/realm/Game.kt

@ -11,8 +11,7 @@ import net.pokeranalytics.android.ui.view.rowrepresentable.SimpleRow
import java.util.* import java.util.*
import kotlin.collections.ArrayList import kotlin.collections.ArrayList
open class Game : RealmObject(), Savable, StaticRowRepresentableDataSource, open class Game : RealmObject(), Savable, StaticRowRepresentableDataSource, RowRepresentable {
RowRepresentable {
@PrimaryKey @PrimaryKey
var id = UUID.randomUUID().toString() var id = UUID.randomUUID().toString()
@ -41,7 +40,7 @@ open class Game : RealmObject(), Savable, StaticRowRepresentableDataSource,
override fun stringForRow(row: RowRepresentable): String { override fun stringForRow(row: RowRepresentable): String {
return when (row) { return when (row) {
SimpleRow.NAME -> this.name SimpleRow.NAME -> this.name
GameRow.SHORT_NAME -> this.shortName?:"" GameRow.SHORT_NAME -> this.shortName ?: ""
else -> return super.stringForRow(row) else -> return super.stringForRow(row)
} }
} }

Loading…
Cancel
Save