|
@@ -11,6 +11,8 @@ struct PumpHistoryEvent: JSON, Equatable {
|
|
|
let rate: Decimal?
|
|
let rate: Decimal?
|
|
|
let temp: TempType?
|
|
let temp: TempType?
|
|
|
let carbInput: Int?
|
|
let carbInput: Int?
|
|
|
|
|
+ let fatInput: Int?
|
|
|
|
|
+ let proteinInput: Int?
|
|
|
let note: String?
|
|
let note: String?
|
|
|
let isSMB: Bool?
|
|
let isSMB: Bool?
|
|
|
let isExternalInsulin: Bool?
|
|
let isExternalInsulin: Bool?
|
|
@@ -25,6 +27,8 @@ struct PumpHistoryEvent: JSON, Equatable {
|
|
|
rate: Decimal? = nil,
|
|
rate: Decimal? = nil,
|
|
|
temp: TempType? = nil,
|
|
temp: TempType? = nil,
|
|
|
carbInput: Int? = nil,
|
|
carbInput: Int? = nil,
|
|
|
|
|
+ fatInput: Int? = nil,
|
|
|
|
|
+ proteinInput: Int? = nil,
|
|
|
note: String? = nil,
|
|
note: String? = nil,
|
|
|
isSMB: Bool? = nil,
|
|
isSMB: Bool? = nil,
|
|
|
isExternalInsulin: Bool? = nil
|
|
isExternalInsulin: Bool? = nil
|
|
@@ -38,6 +42,8 @@ struct PumpHistoryEvent: JSON, Equatable {
|
|
|
self.rate = rate
|
|
self.rate = rate
|
|
|
self.temp = temp
|
|
self.temp = temp
|
|
|
self.carbInput = carbInput
|
|
self.carbInput = carbInput
|
|
|
|
|
+ self.fatInput = fatInput
|
|
|
|
|
+ self.proteinInput = proteinInput
|
|
|
self.note = note
|
|
self.note = note
|
|
|
self.isSMB = isSMB
|
|
self.isSMB = isSMB
|
|
|
self.isExternalInsulin = isExternalInsulin
|
|
self.isExternalInsulin = isExternalInsulin
|
|
@@ -88,6 +94,8 @@ extension PumpHistoryEvent {
|
|
|
case rate
|
|
case rate
|
|
|
case temp
|
|
case temp
|
|
|
case carbInput = "carb_input"
|
|
case carbInput = "carb_input"
|
|
|
|
|
+ case fatInput
|
|
|
|
|
+ case proteinInput
|
|
|
case note
|
|
case note
|
|
|
case isSMB
|
|
case isSMB
|
|
|
case isExternalInsulin
|
|
case isExternalInsulin
|