Wear Include Double values into SingleBg for delta and avgDelta
This commit is contained in:
parent
1504cfffef
commit
d58eca8780
|
@ -186,7 +186,9 @@ sealed class EventData : Event() {
|
|||
val sgv: Double,
|
||||
val high: Double, // highLine
|
||||
val low: Double, // lowLine
|
||||
val color: Int = 0
|
||||
val color: Int = 0,
|
||||
val deltaMgdl: Double? = null,
|
||||
val avgDeltaMgdl: Double? = null
|
||||
) : EventData(), Comparable<SingleBg> {
|
||||
|
||||
override fun equals(other: Any?): Boolean =
|
||||
|
|
|
@ -986,7 +986,9 @@ class DataHandlerMobile @Inject constructor(
|
|||
sgv = glucoseValue.recalculated,
|
||||
high = highLine,
|
||||
low = lowLine,
|
||||
color = 0
|
||||
color = 0,
|
||||
deltaMgdl = glucoseStatus?.delta,
|
||||
avgDeltaMgdl = glucoseStatus?.shortAvgDelta
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,9 @@ class RawDisplayData {
|
|||
sgv = 0.0,
|
||||
high = 0.0,
|
||||
low = 0.0,
|
||||
color = 0
|
||||
color = 0,
|
||||
deltaMgdl = null,
|
||||
avgDeltaMgdl = null
|
||||
)
|
||||
|
||||
// status bundle
|
||||
|
|
Loading…
Reference in a new issue