12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // SaveScoreBoard.swift
- // Learn Genie
- //
- // Created by Suraj Kumar Mandal on 24/09/21.
- //
- import Foundation
- import RealmSwift
- class SaveScoreBoard: Object {
- @objc dynamic var id = 0
- @objc dynamic var levelId = 0
- @objc dynamic var topicId = 0
- @objc dynamic var runs = 0
- @objc dynamic var wickets = 0
- @objc dynamic var noOfAttempts = 0
- @objc dynamic var student = 0
- @objc dynamic var synced = false
- override static func primaryKey() -> String? {
- return "topicId"
- }
- convenience init(id:Int, levelId:Int, topicId:Int, runs:Int, wickets:Int, noOfAttempts:Int, student:Int, synced:Bool) {
- self.init()
- self.id = id
- self.levelId = levelId
- self.topicId = topicId
- self.runs = runs
- self.wickets = wickets
- self.noOfAttempts = noOfAttempts
- self.student = student
- self.synced = synced
- }
- }
|