RawFetchedProfile.swift 626 B

12345678910111213141516171819202122232425
  1. import Foundation
  2. struct FetchedNightscoutProfileStore: JSON {
  3. let _id: String
  4. let defaultProfile: String
  5. let startDate: String
  6. let mills: Decimal
  7. let enteredBy: String
  8. let store: [String: ScheduledNightscoutProfile]
  9. let created_at: String
  10. }
  11. struct FetchedNightscoutProfile: JSON {
  12. let dia: Decimal
  13. let carbs_hr: Int
  14. let delay: Decimal
  15. let timezone: String
  16. let target_low: [NightscoutTimevalue]
  17. let target_high: [NightscoutTimevalue]
  18. let sens: [NightscoutTimevalue]
  19. let basal: [NightscoutTimevalue]
  20. let carbratio: [NightscoutTimevalue]
  21. let units: String
  22. }