AutomaticDoseRecommendation.swift 562 B

12345678910111213141516171819202122
  1. //
  2. // AutomaticDoseRecommendation.swift
  3. // LoopKit
  4. //
  5. // Created by Pete Schwamb on 1/16/21.
  6. // Copyright © 2021 LoopKit Authors. All rights reserved.
  7. //
  8. import Foundation
  9. public struct AutomaticDoseRecommendation: Equatable {
  10. public let basalAdjustment: TempBasalRecommendation?
  11. public let bolusUnits: Double?
  12. public init(basalAdjustment: TempBasalRecommendation?, bolusUnits: Double? = nil) {
  13. self.basalAdjustment = basalAdjustment
  14. self.bolusUnits = bolusUnits
  15. }
  16. }
  17. extension AutomaticDoseRecommendation: Codable {}