123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // TopicModel.swift
- // Learn Genie
- //
- // Created by Suraj Kumar Mandal on 06/09/21.
- //
- import Foundation
- import RealmSwift
- class TopicModel: Object {
-
- @objc dynamic var id = 0
- @objc dynamic var levelId = 0
- @objc dynamic var noOfQuizQuestions = 0
- @objc dynamic var video = ""
- @objc dynamic var dateCreated = ""
- @objc dynamic var lastUpdated = ""
- @objc dynamic var name = ""
- @objc dynamic var questionBankId = 0
- @objc dynamic var content = ""
- @objc dynamic var languageId = 0
-
- override static func primaryKey() -> String? {
- return "id"
- }
-
- convenience init(id:Int, levelId:Int, noOfQuizQuestions:Int, video:String, dateCreated:String, lastUpdated:String, name:String, questionBankId: Int, content:String, languageId:Int) {
-
- self.init()
-
- self.id = id
- self.levelId = levelId
- self.noOfQuizQuestions = noOfQuizQuestions
- self.video = video
- self.dateCreated = dateCreated
- self.lastUpdated = lastUpdated
- self.name = name
- self.questionBankId = questionBankId
- self.content = content
- self.languageId = languageId
-
- }
-
- }
|