|
|
|
|
@ -120,15 +120,15 @@ open class SessionSet() : RealmObject(), Timed, Filterable { |
|
|
|
|
|
|
|
|
|
override fun formattedValue(stat: Stat, context: Context) : TextFormat { |
|
|
|
|
return when (stat) { |
|
|
|
|
Stat.NET_RESULT, Stat.AVERAGE -> stat.format(this.ratedNet, currency = null, context = context) |
|
|
|
|
Stat.DURATION, Stat.AVERAGE_DURATION -> stat.format(this.netDuration.toDouble(), currency = null, context = context) |
|
|
|
|
Stat.HOURLY_RATE -> stat.format(this.hourlyRate, currency = null, context = context) |
|
|
|
|
Stat.HANDS_PLAYED -> stat.format(this.estimatedHands, currency = null, context = context) |
|
|
|
|
Stat.HOURLY_RATE_BB -> stat.format(this.bbHourlyRate, currency = null, context = context) |
|
|
|
|
Stat.NET_RESULT, Stat.AVERAGE -> stat.format(this.ratedNet, currency = null) |
|
|
|
|
Stat.DURATION, Stat.AVERAGE_DURATION -> stat.format(this.netDuration.toDouble(), currency = null) |
|
|
|
|
Stat.HOURLY_RATE -> stat.format(this.hourlyRate, currency = null) |
|
|
|
|
Stat.HANDS_PLAYED -> stat.format(this.estimatedHands, currency = null) |
|
|
|
|
Stat.HOURLY_RATE_BB -> stat.format(this.bbHourlyRate, currency = null) |
|
|
|
|
Stat.NET_BB_PER_100_HANDS, Stat.STANDARD_DEVIATION_BB_PER_100_HANDS -> { |
|
|
|
|
val netBBPer100Hands = Stat.netBBPer100Hands(this.bbNet, this.estimatedHands) |
|
|
|
|
if (netBBPer100Hands != null) { |
|
|
|
|
return stat.format(this.estimatedHands, currency = null, context = context) |
|
|
|
|
return stat.format(this.estimatedHands, currency = null) |
|
|
|
|
} else { |
|
|
|
|
return TextFormat(NULL_TEXT) |
|
|
|
|
} |
|
|
|
|
|