Mercurial > public > geoquiz
comparison GeoQuiz/Logic/PlayedGame+CoreDataProperties.swift @ 15:f1967f8cc67b
first iteration of core data
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 19 Oct 2022 10:04:17 +0200 |
parents | |
children | e281791e0494 |
comparison
equal
deleted
inserted
replaced
14:136928bae534 | 15:f1967f8cc67b |
---|---|
1 // | |
2 // PlayedGame+CoreDataProperties.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 19/10/22. | |
6 // | |
7 // | |
8 | |
9 import Foundation | |
10 import CoreData | |
11 | |
12 | |
13 extension PlayedGame { | |
14 | |
15 @nonobjc public class func fetchRequest() -> NSFetchRequest<PlayedGame> { | |
16 return NSFetchRequest<PlayedGame>(entityName: "PlayedGame") | |
17 } | |
18 | |
19 @NSManaged public var id: UUID | |
20 @NSManaged public var type: GameType | |
21 @NSManaged public var score: Int32 | |
22 @NSManaged public var date: Date | |
23 @NSManaged public var correctAnswers: [String]? | |
24 @NSManaged public var wrongAnswers: [String]? | |
25 | |
26 } | |
27 | |
28 extension PlayedGame : Identifiable { | |
29 | |
30 } |