Commented TreatmentEntry+CoreDataProperties.swift.

This commit is contained in:
eduardopietre 2021-12-27 21:20:06 -03:00 committed by Johan Degraeve
parent a11896cca2
commit 81565c8e4e
1 changed files with 5 additions and 0 deletions

View File

@ -12,16 +12,21 @@ import CoreData
extension TreatmentEntry {
// Used to load entries from CoreData.
@nonobjc public class func fetchRequest() -> NSFetchRequest<TreatmentEntry> {
return NSFetchRequest<TreatmentEntry>(entityName: "TreatmentEntry")
}
// Date represents the date of the treatment, not the date of creation.
@NSManaged public var date: Date
// Value represents the amount (e.g. insulin units or carbs grams).
@NSManaged public var value: Double
// Enum TreatmentType defines which treatment this instance is.
@NSManaged public var treatmentType: TreatmentType
// Tells if this instance has been uploaded to Nightscout.
@NSManaged public var uploaded: Bool
}