-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocation+CoreDataProperties.swift
66 lines (46 loc) · 1.72 KB
/
Location+CoreDataProperties.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// Location+CoreDataProperties.swift
// ios-weather-app-final
//
// Created by Tomasz Watroba on 13/06/2024.
//
//
import Foundation
import CoreData
extension Location {
@nonobjc public class func fetchRequest() -> NSFetchRequest<Location> {
return NSFetchRequest<Location>(entityName: "Location")
}
@NSManaged public var city: String?
@NSManaged public var country: String?
@NSManaged public var lastUpdatedDate: Date?
@NSManaged public var lat: Double
@NSManaged public var lng: Double
@NSManaged public var updatedAt: Date?
@NSManaged public var dailyForecasts: NSSet?
@NSManaged public var hourlyTemperatures: NSSet?
}
// MARK: Generated accessors for dailyForecasts
extension Location {
@objc(addDailyForecastsObject:)
@NSManaged public func addToDailyForecasts(_ value: DailyForecast)
@objc(removeDailyForecastsObject:)
@NSManaged public func removeFromDailyForecasts(_ value: DailyForecast)
@objc(addDailyForecasts:)
@NSManaged public func addToDailyForecasts(_ values: NSSet)
@objc(removeDailyForecasts:)
@NSManaged public func removeFromDailyForecasts(_ values: NSSet)
}
// MARK: Generated accessors for hourlyTemperatures
extension Location {
@objc(addHourlyTemperaturesObject:)
@NSManaged public func addToHourlyTemperatures(_ value: HourlyTemperature)
@objc(removeHourlyTemperaturesObject:)
@NSManaged public func removeFromHourlyTemperatures(_ value: HourlyTemperature)
@objc(addHourlyTemperatures:)
@NSManaged public func addToHourlyTemperatures(_ values: NSSet)
@objc(removeHourlyTemperatures:)
@NSManaged public func removeFromHourlyTemperatures(_ values: NSSet)
}
extension Location : Identifiable {
}