diff GeoQuiz/Models/PlayedGame+CoreDataProperties.swift @ 26:425078c01194

refactor code
author Dennis C. M. <dennis@denniscm.com>
date Wed, 09 Nov 2022 10:30:01 +0100
parents GeoQuiz/Logic/PlayedGame+CoreDataProperties.swift@e281791e0494
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GeoQuiz/Models/PlayedGame+CoreDataProperties.swift	Wed Nov 09 10:30:01 2022 +0100
@@ -0,0 +1,29 @@
+//
+//  PlayedGame+CoreDataProperties.swift
+//  GeoQuiz
+//
+//  Created by Dennis Concepción Martín on 19/10/22.
+//
+//
+
+import Foundation
+import CoreData
+
+
+extension PlayedGame {
+
+    @nonobjc public class func fetchRequest() -> NSFetchRequest<PlayedGame> {
+        return NSFetchRequest<PlayedGame>(entityName: "PlayedGame")
+    }
+
+    @NSManaged public var type: GameType
+    @NSManaged public var score: Int32
+    @NSManaged public var date: Date?
+    @NSManaged public var correctAnswers: [String]?
+    @NSManaged public var wrongAnswers: [String]?
+
+}
+
+extension PlayedGame : Identifiable {
+
+}