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