|
|
|
|
@ -55,7 +55,7 @@ abstract class PACSVDescriptor<T : Identifiable>(source: DataSource, private var |
|
|
|
|
sameDaySessionCount = 0 |
|
|
|
|
} |
|
|
|
|
currentDay = value |
|
|
|
|
} else {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is SessionField.End -> { |
|
|
|
|
endDate = field.parse(value) |
|
|
|
|
@ -104,7 +104,6 @@ abstract class PACSVDescriptor<T : Identifiable>(source: DataSource, private var |
|
|
|
|
session.result?.buyin = buyin |
|
|
|
|
if (session.type == Session.Type.TOURNAMENT.ordinal) { |
|
|
|
|
session.tournamentEntryFee = buyin |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is SessionField.CashedOut -> session.result?.cashout = field.parse(value) |
|
|
|
|
@ -136,20 +135,17 @@ abstract class PACSVDescriptor<T : Identifiable>(source: DataSource, private var |
|
|
|
|
} |
|
|
|
|
session.game = realm.getOrCreate(limitAndGame.trim()) |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is SessionField.Game -> { |
|
|
|
|
if (value.isNotEmpty()) { |
|
|
|
|
session.game = realm.getOrCreate(value) |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is SessionField.Location -> { |
|
|
|
|
val trimmedValue = value.trim() |
|
|
|
|
if (trimmedValue.isNotEmpty()) { |
|
|
|
|
session.location = realm.getOrCreate(trimmedValue) |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is SessionField.Bankroll -> bankrollName = value |
|
|
|
|
@ -164,13 +160,13 @@ abstract class PACSVDescriptor<T : Identifiable>(source: DataSource, private var |
|
|
|
|
val sb = field.parse(value) |
|
|
|
|
if (sb != null && sb > 0.0) { |
|
|
|
|
session.cgSmallBlind = sb |
|
|
|
|
} else {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is SessionField.BigBlind -> { |
|
|
|
|
val bb = field.parse(value) |
|
|
|
|
if (bb != null && bb > 0.0) { |
|
|
|
|
session.cgBigBlind = bb |
|
|
|
|
} else {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is SessionField.TableSize -> session.tableSize = TableSize.valueForLabel(value) |
|
|
|
|
is SessionField.TournamentPosition -> session.result?.tournamentFinalPosition = |
|
|
|
|
@ -178,7 +174,6 @@ abstract class PACSVDescriptor<T : Identifiable>(source: DataSource, private var |
|
|
|
|
is SessionField.TournamentName -> { |
|
|
|
|
if (value.isNotEmpty()) { |
|
|
|
|
session.tournamentName = realm.getOrCreate(value) |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
is SessionField.TournamentTypeName -> session.tournamentType = |
|
|
|
|
|