parent
d2d643e244
commit
5374a9f605
@ -1,16 +0,0 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
|
||||
open class TournamentName() : RealmObject() { |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the tournament |
||||
var name: String = "" |
||||
|
||||
} |
||||
@ -0,0 +1,40 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.Ignore |
||||
import io.realm.annotations.PrimaryKey |
||||
import net.pokeranalytics.android.model.interfaces.Savable |
||||
import net.pokeranalytics.android.ui.adapter.RowRepresentableDataSource |
||||
import net.pokeranalytics.android.ui.view.RowRepresentable |
||||
import net.pokeranalytics.android.ui.view.SimpleRow |
||||
import java.util.* |
||||
|
||||
|
||||
open class TournamentType : RealmObject(), Savable, RowRepresentableDataSource, RowRepresentable { |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the tournament |
||||
var name: String = "" |
||||
|
||||
override fun getDisplayName(): String { |
||||
return this.name |
||||
} |
||||
|
||||
override fun uniqueIdentifier(): String { |
||||
return this.id |
||||
} |
||||
|
||||
override fun updateValue(value: Any?, row: RowRepresentable) { |
||||
when (row) { |
||||
SimpleRow.NAME -> this.name = value as String? ?: "" |
||||
} |
||||
} |
||||
|
||||
@Ignore |
||||
override var displayHeader: Boolean = false |
||||
@Ignore |
||||
override var headerValues: ArrayList<String> = ArrayList() |
||||
|
||||
} |
||||
@ -0,0 +1,8 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<resources> |
||||
<string-array name="tournament_type"> |
||||
<item>MTT</item> |
||||
<item>Sit&Go</item> |
||||
<item>Turbo Sit&Go</item> |
||||
</string-array> |
||||
</resources> |
||||
Loading…
Reference in new issue