123456789101112131415161718192021222324252627282930313233 |
- //
- // ChoiceModel.swift
- // Learn Genie
- //
- // Created by Suraj Kumar Mandal on 15/09/21.
- //
- import Foundation
- import RealmSwift
- class ChoiceModel: Object {
- @objc dynamic var id = 0
- @objc dynamic var content = ""
- @objc dynamic var questionId = 0
- override static func primaryKey() -> String? {
- return "id"
- }
- convenience init(id:Int, content:String, questionId:Int) {
- self.init()
- self.id = id
- self.content = content
- self.questionId = questionId
- }
- }
|