RawFetchedProfile.swift 822 B

12345678910111213141516171819202122232425262728293031
  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 enteredBy: String
  14. // let store: [String: FetchedNightscoutProfile]
  15. //>>>>>>> 9672da256c317a314acc76d6e4f6e82cc174d133
  16. }
  17. struct FetchedNightscoutProfile: JSON {
  18. let dia: Decimal
  19. let carbs_hr: Int
  20. let delay: Decimal
  21. let timezone: String
  22. let target_low: [NightscoutTimevalue]
  23. let target_high: [NightscoutTimevalue]
  24. let sens: [NightscoutTimevalue]
  25. let basal: [NightscoutTimevalue]
  26. let carbratio: [NightscoutTimevalue]
  27. let units: String
  28. }