Bläddra i källkod

rename temp type

Ivan Valkou 5 år sedan
förälder
incheckning
90a7774e32

+ 2 - 2
FreeAPS/Sources/Models/PumpHistoryEvent.swift

@@ -8,7 +8,7 @@ struct PumpHistoryEvent: JSON {
     let duration: Int?
     let durationMin: Int?
     let rate: Decimal?
-    let temp: PumpHistoryTempType?
+    let temp: TempType?
     let carbInput: Int?
 }
 
@@ -27,7 +27,7 @@ enum PumpHistoryEventType: String, JSON {
     case journalCarbs = "JournalEntryMealMarker"
 }
 
-enum PumpHistoryTempType: String, JSON {
+enum TempType: String, JSON {
     case absolute
     case percent
 }

+ 1 - 1
FreeAPS/Sources/Models/TempBasal.swift

@@ -3,6 +3,6 @@ import Foundation
 struct TempBasal: JSON {
     let duration: Int
     let rate: Decimal
-    let temp: PumpHistoryTempType
+    let temp: TempType
     let updatedAt: Date
 }