HomeDataFlow.swift 445 B

123456789101112131415161718
  1. import Foundation
  2. import LoopKitUI
  3. enum Home {
  4. enum Config {}
  5. }
  6. protocol HomeProvider: Provider {
  7. func heartbeatNow()
  8. func pumpSettings() -> PumpSettings
  9. func getBasalProfile() async -> [BasalProfileEntry]
  10. func tempTargets(hours: Int) -> [TempTarget]
  11. func pumpReservoir() -> Decimal?
  12. func tempTarget() -> TempTarget?
  13. func announcement(_ hours: Int) -> [Announcement]
  14. func getBGTarget() async -> BGTargets
  15. }