InsulinDataSource.swift 625 B

12345678910111213141516171819202122232425
  1. //
  2. // InsulinDataSource.swift
  3. // Loop
  4. //
  5. // Created by Nathan Racklyeft on 6/10/16.
  6. // Copyright © 2016 Nathan Racklyeft. All rights reserved.
  7. //
  8. import Foundation
  9. public enum InsulinDataSource: Int, CustomStringConvertible {
  10. case pumpHistory = 0
  11. case reservoir
  12. public var description: String {
  13. switch self {
  14. case .pumpHistory:
  15. return LocalizedString("Event History", comment: "Describing the pump history insulin data source")
  16. case .reservoir:
  17. return LocalizedString("Reservoir", comment: "Describing the reservoir insulin data source")
  18. }
  19. }
  20. }