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