| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // LoopFollow
- // InfoType.swift
- import Foundation
- enum InfoType: Int, CaseIterable {
- case iob, cob, basal, override, battery, pump, pumpBattery, sage, cage, recBolus, minMax, carbsToday, autosens, profile, target, isf, carbRatio, updated, tdd, iage
- var name: String {
- switch self {
- case .iob: return String(localized: "IOB")
- case .cob: return String(localized: "COB")
- case .basal: return String(localized: "Basal")
- case .override: return String(localized: "Override")
- case .battery: return String(localized: "Battery")
- case .pump: return String(localized: "Pump")
- case .pumpBattery: return String(localized: "Pump Battery")
- case .sage: return String(localized: "SAGE")
- case .cage: return String(localized: "CAGE")
- case .recBolus: return String(localized: "Rec. Bolus")
- case .minMax: return String(localized: "Min/Max")
- case .carbsToday: return String(localized: "Carbs today")
- case .autosens: return String(localized: "Autosens")
- case .profile: return String(localized: "Profile")
- case .target: return String(localized: "Target")
- case .isf: return String(localized: "ISF")
- case .carbRatio: return String(localized: "CR")
- case .updated: return String(localized: "Updated")
- case .tdd: return String(localized: "TDD")
- case .iage: return String(localized: "IAGE")
- }
- }
- var defaultVisible: Bool {
- switch self {
- case .iob, .cob, .basal, .override, .battery, .pump, .sage, .cage, .recBolus, .minMax, .carbsToday:
- return true
- default:
- return false
- }
- }
- var sortOrder: Int {
- return rawValue
- }
- }
|