GlucoseNotificationsOption.swift 534 B

1234567891011121314151617181920212223
  1. //
  2. // GlucoseNotificationOption.swift
  3. // FreeAPS
  4. //
  5. // Created by Kimberlie Skandis on 1/18/25.
  6. //
  7. import Foundation
  8. public enum GlucoseNotificationsOption: String, JSON, CaseIterable, Identifiable, Codable, Hashable {
  9. public var id: String { rawValue }
  10. case disabled
  11. case alwaysEveryCGM
  12. case onlyLowHigh
  13. var displayName: String {
  14. switch self {
  15. case .disabled: return "Disabled"
  16. case .alwaysEveryCGM: return "Always"
  17. case .onlyLowHigh: return "Only LOW/HIGH"
  18. }
  19. }
  20. }