HomeDataFlow.swift 635 B

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