Преглед на файлове

Add transmitter and sensor information to BG

Jan Dittmer преди 4 години
родител
ревизия
15f80bf7e0
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      FreeAPS/Sources/Models/BloodGlucose.swift

+ 4 - 0
FreeAPS/Sources/Models/BloodGlucose.swift

@@ -32,6 +32,10 @@ struct BloodGlucose: JSON, Identifiable, Hashable {
 
     let type: String?
 
+    var activationDate: Date? = nil
+    var sessionStartDate: Date? = nil
+    var transmitterID: String? = nil
+
     var isStateValid: Bool { sgv ?? 0 >= 39 && noise ?? 1 != 4 }
 
     static func == (lhs: BloodGlucose, rhs: BloodGlucose) -> Bool {