HomeDataFlow.swift 463 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() async -> PumpSettings
  9. func autotunedBasalProfile() async -> [BasalProfileEntry]
  10. func basalProfile() async -> [BasalProfileEntry]
  11. func tempTargets(hours: Int) -> [TempTarget]
  12. func pumpReservoir() async -> Decimal?
  13. func tempTarget() -> TempTarget?
  14. func getBGTargets() async -> BGTargets
  15. }