HomeDataFlow.swift 489 B

123456789101112131415161718
  1. import Foundation
  2. enum Home {
  3. enum Config {}
  4. }
  5. protocol HomeProvider: Provider {
  6. var suggestion: Suggestion? { get }
  7. var enactedSuggestion: Suggestion? { get }
  8. func fetchAndLoop()
  9. func filteredGlucose(hours: Int) -> [BloodGlucose]
  10. func pumpHistory(hours: Int) -> [PumpHistoryEvent]
  11. func pumpSettings() -> PumpSettings
  12. func basalProfile() -> [BasalProfileEntry]
  13. func tempTargets(hours: Int) -> [TempTarget]
  14. func carbs(hours: Int) -> [CarbsEntry]
  15. }