|
|
|
|
@ -557,8 +557,12 @@ open class Session : RealmObject(), SessionInterface, Manageable, StaticRowRepre |
|
|
|
|
NULL_TEXT |
|
|
|
|
} |
|
|
|
|
SessionRow.TOURNAMENT_FEATURE -> tournamentFeatures?.let { |
|
|
|
|
it.joinToString {feature -> |
|
|
|
|
feature.name |
|
|
|
|
if (it.size > 2) { |
|
|
|
|
"${it.size}" |
|
|
|
|
} else { |
|
|
|
|
it.joinToString {feature -> |
|
|
|
|
feature.name |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
SessionRow.TOURNAMENT_NAME -> tournamentName?.name ?: NULL_TEXT |
|
|
|
|
@ -796,6 +800,7 @@ open class Session : RealmObject(), SessionInterface, Manageable, StaticRowRepre |
|
|
|
|
} |
|
|
|
|
SessionRow.TOURNAMENT_NAME -> tournamentName = value as TournamentName? |
|
|
|
|
SessionRow.TOURNAMENT_TYPE -> tournamentType = value as Int? |
|
|
|
|
SessionRow.TOURNAMENT_FEATURE -> tournamentFeatures = value as RealmList<TournamentFeature> |
|
|
|
|
} |
|
|
|
|
realm.commitTransaction() |
|
|
|
|
} |
|
|
|
|
|