HomeDataFlow.swift 711 B

123456789101112131415161718192021222324
  1. import Foundation
  2. import LoopKitUI
  3. enum Home {
  4. enum Config {}
  5. }
  6. protocol HomeProvider: Provider {
  7. var suggestion: Suggestion? { get }
  8. var statistics: Statistics? { get }
  9. var enactedSuggestion: Suggestion? { get }
  10. func heartbeatNow()
  11. func filteredGlucose(hours: Int) -> [BloodGlucose]
  12. func pumpHistory(hours: Int) -> [PumpHistoryEvent]
  13. func pumpSettings() -> PumpSettings
  14. func autotunedBasalProfile() -> [BasalProfileEntry]
  15. func basalProfile() -> [BasalProfileEntry]
  16. func tempTargets(hours: Int) -> [TempTarget]
  17. func carbs(hours: Int) -> [CarbsEntry]
  18. func pumpBattery() -> Battery?
  19. func pumpReservoir() -> Decimal?
  20. func tempTarget() -> TempTarget?
  21. }