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