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