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