| 123456789101112131415161718192021222324252627282930 |
- //
- // StoredInsulinModel.swift
- // LoopKit
- //
- // Created by Darin Krauss on 7/23/20.
- // Copyright © 2020 LoopKit Authors. All rights reserved.
- //
- import Foundation
- public struct StoredInsulinModel: Codable, Equatable {
- public enum ModelType: String, Codable {
- case fiasp
- case lyumjev
- case rapidAdult
- case rapidChild
- case walsh
- }
- public let modelType: ModelType
- public let actionDuration: TimeInterval
- public let peakActivity: TimeInterval?
- public init(modelType: ModelType, actionDuration: TimeInterval, peakActivity: TimeInterval? = nil) {
- self.modelType = modelType
- self.actionDuration = actionDuration
- self.peakActivity = peakActivity
- }
- }
|