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