Skip to content

Commit a888409

Browse files
authored
nate/fix/LOOP-1927/manual-glucose-entry (#15)
* updates to align with renaming in LoopKit * removed glucose range categorization * clean up
1 parent 407f23f commit a888409

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ShareClient/ShareClientManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class ShareClientManager: CGMManager {
6161

6262
public let shouldSyncToRemoteService = false
6363

64-
public var sensorState: SensorDisplayable? {
64+
public var glucoseDisplay: GlucoseDisplayable? {
6565
return latestBackfill
6666
}
6767

ShareClient/ShareGlucose+GlucoseKit.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extension ShareGlucose: GlucoseValue {
2222
}
2323

2424

25-
extension ShareGlucose: SensorDisplayable {
25+
extension ShareGlucose: GlucoseDisplayable {
2626
public var isStateValid: Bool {
2727
return glucose >= 39
2828
}
@@ -36,12 +36,12 @@ extension ShareGlucose: SensorDisplayable {
3636
}
3737

3838
// TODO Placeholder. This functionality will come with LOOP-1311
39-
public var glucoseValueType: GlucoseValueType? {
39+
public var glucoseRangeCategory: GlucoseRangeCategory? {
4040
return nil
4141
}
4242
}
4343

44-
extension SensorDisplayable {
44+
extension GlucoseDisplayable {
4545
public var stateDescription: String {
4646
if isStateValid {
4747
return LocalizedString("OK", comment: "Sensor state description for the valid state")

0 commit comments

Comments
 (0)