1234567891011121314151617181920212223242526272829303132333435 |
- //
- // LanguageModel.swift
- // Learn Genie
- //
- // Created by Suraj Kumar Mandal on 02/09/21.
- //
- import Foundation
- import RealmSwift
- class LanguageModel: Object {
-
- @objc dynamic var id = 0
- @objc dynamic var shortName = ""
- @objc dynamic var dateCreated = ""
- @objc dynamic var lastUpdated = ""
- @objc dynamic var name = ""
-
- override static func primaryKey() -> String? {
- return "id"
- }
-
- convenience init(id:Int, shortName:String, dateCreated:String, lastUpdated:String, name:String) {
-
- self.init()
-
- self.id = id
- self.shortName = shortName
- self.dateCreated = dateCreated
- self.lastUpdated = lastUpdated
- self.name = name
-
- }
-
- }
|