|
|
@@ -19,8 +19,6 @@ struct Determination: JSON, Equatable {
|
|
|
let reservoir: Decimal?
|
|
|
var isf: Decimal?
|
|
|
var timestamp: Date?
|
|
|
- let tdd: Decimal?
|
|
|
- let insulin: Insulin?
|
|
|
var current_target: Decimal?
|
|
|
let insulinForManualBolus: Decimal?
|
|
|
let manualBolusErrorString: Decimal?
|
|
|
@@ -40,13 +38,6 @@ struct Predictions: JSON, Equatable {
|
|
|
let uam: [Int]?
|
|
|
}
|
|
|
|
|
|
-struct Insulin: JSON, Equatable {
|
|
|
- let TDD: Decimal?
|
|
|
- let bolus: Decimal?
|
|
|
- let temp_basal: Decimal?
|
|
|
- let scheduled_basal: Decimal?
|
|
|
-}
|
|
|
-
|
|
|
extension Determination {
|
|
|
private enum CodingKeys: String, CodingKey {
|
|
|
case id
|
|
|
@@ -67,8 +58,6 @@ extension Determination {
|
|
|
case reservoir
|
|
|
case timestamp
|
|
|
case isf = "ISF"
|
|
|
- case tdd = "TDD"
|
|
|
- case insulin
|
|
|
case current_target
|
|
|
case insulinForManualBolus
|
|
|
case manualBolusErrorString
|
|
|
@@ -91,15 +80,6 @@ extension Predictions {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension Insulin {
|
|
|
- private enum CodingKeys: String, CodingKey {
|
|
|
- case TDD
|
|
|
- case bolus
|
|
|
- case temp_basal
|
|
|
- case scheduled_basal
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
protocol DeterminationObserver {
|
|
|
func determinationDidUpdate(_ determination: Determination)
|
|
|
}
|