HomeDataFlow.swift 442 B

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