RawFetchedProfile.swift 809 B

123456789101112131415161718192021222324252627282930
  1. import Foundation
  2. struct FetchedNightscoutProfileStore: JSON {
  3. let _id: String
  4. let defaultProfile: String
  5. let startDate: String
  6. // TODO: what is this shit used for?
  7. // <<<<<<< HEAD
  8. let mills: Decimal
  9. let enteredBy: String
  10. // let store: [String: ScheduledNightscoutProfile]
  11. let created_at: String
  12. //=======
  13. let store: [String: FetchedNightscoutProfile]
  14. // >>>>>>> 9672da256c317a314acc76d6e4f6e82cc174d133
  15. }
  16. struct FetchedNightscoutProfile: JSON {
  17. let dia: Decimal
  18. let carbs_hr: Int
  19. let delay: Decimal
  20. let timezone: String
  21. let target_low: [NightscoutTimevalue]
  22. let target_high: [NightscoutTimevalue]
  23. let sens: [NightscoutTimevalue]
  24. let basal: [NightscoutTimevalue]
  25. let carbratio: [NightscoutTimevalue]
  26. let units: String
  27. }