O2Account.swift 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. //
  2. // O2Account.swift
  3. // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
  4. import Foundation
  5. import ObjectMapper
  6. class O2Account : NSObject, NSCoding, Mappable{
  7. var autoLogin : Bool?
  8. var changePasswordTime : String?
  9. var controllerList : [AnyObject]?
  10. var createTime : String?
  11. var distinguishedName : String?
  12. var employee : String?
  13. var genderType : String?
  14. var icon : String?
  15. var id : String?
  16. var lastLoginAddress : String?
  17. var lastLoginClient : String?
  18. var lastLoginTime : String?
  19. var mail : String?
  20. var mobile : String?
  21. var name : String?
  22. var pinyin : String?
  23. var pinyinInitial : String?
  24. var qq : String?
  25. var roleList : [AnyObject]?
  26. var token : String?
  27. var tokenType : String?
  28. var unique : String?
  29. var updateTime : String?
  30. var weixin : String?
  31. class func newInstance(map: Map) -> Mappable?{
  32. return O2Account()
  33. }
  34. required init?(map: Map){}
  35. private override init(){}
  36. func mapping(map: Map)
  37. {
  38. autoLogin <- map["autoLogin"]
  39. changePasswordTime <- map["changePasswordTime"]
  40. controllerList <- map["controllerList"]
  41. createTime <- map["createTime"]
  42. distinguishedName <- map["distinguishedName"]
  43. employee <- map["employee"]
  44. genderType <- map["genderType"]
  45. icon <- map["icon"]
  46. id <- map["id"]
  47. lastLoginAddress <- map["lastLoginAddress"]
  48. lastLoginClient <- map["lastLoginClient"]
  49. lastLoginTime <- map["lastLoginTime"]
  50. mail <- map["mail"]
  51. mobile <- map["mobile"]
  52. name <- map["name"]
  53. pinyin <- map["pinyin"]
  54. pinyinInitial <- map["pinyinInitial"]
  55. qq <- map["qq"]
  56. roleList <- map["roleList"]
  57. token <- map["token"]
  58. tokenType <- map["tokenType"]
  59. unique <- map["unique"]
  60. updateTime <- map["updateTime"]
  61. weixin <- map["weixin"]
  62. }
  63. /**
  64. * NSCoding required initializer.
  65. * Fills the data from the passed decoder
  66. */
  67. @objc required init(coder aDecoder: NSCoder)
  68. {
  69. autoLogin = aDecoder.decodeObject(forKey: "autoLogin") as? Bool
  70. changePasswordTime = aDecoder.decodeObject(forKey: "changePasswordTime") as? String
  71. controllerList = aDecoder.decodeObject(forKey: "controllerList") as? [AnyObject]
  72. createTime = aDecoder.decodeObject(forKey: "createTime") as? String
  73. distinguishedName = aDecoder.decodeObject(forKey: "distinguishedName") as? String
  74. employee = aDecoder.decodeObject(forKey: "employee") as? String
  75. genderType = aDecoder.decodeObject(forKey: "genderType") as? String
  76. icon = aDecoder.decodeObject(forKey: "icon") as? String
  77. id = aDecoder.decodeObject(forKey: "id") as? String
  78. lastLoginAddress = aDecoder.decodeObject(forKey: "lastLoginAddress") as? String
  79. lastLoginClient = aDecoder.decodeObject(forKey: "lastLoginClient") as? String
  80. lastLoginTime = aDecoder.decodeObject(forKey: "lastLoginTime") as? String
  81. mail = aDecoder.decodeObject(forKey: "mail") as? String
  82. mobile = aDecoder.decodeObject(forKey: "mobile") as? String
  83. name = aDecoder.decodeObject(forKey: "name") as? String
  84. pinyin = aDecoder.decodeObject(forKey: "pinyin") as? String
  85. pinyinInitial = aDecoder.decodeObject(forKey: "pinyinInitial") as? String
  86. qq = aDecoder.decodeObject(forKey: "qq") as? String
  87. roleList = aDecoder.decodeObject(forKey: "roleList") as? [AnyObject]
  88. token = aDecoder.decodeObject(forKey: "token") as? String
  89. tokenType = aDecoder.decodeObject(forKey: "tokenType") as? String
  90. unique = aDecoder.decodeObject(forKey: "unique") as? String
  91. updateTime = aDecoder.decodeObject(forKey: "updateTime") as? String
  92. weixin = aDecoder.decodeObject(forKey: "weixin") as? String
  93. }
  94. /**
  95. * NSCoding required method.
  96. * Encodes mode properties into the decoder
  97. */
  98. @objc func encode(with aCoder: NSCoder)
  99. {
  100. if autoLogin != nil{
  101. aCoder.encode(autoLogin, forKey: "autoLogin")
  102. }
  103. if changePasswordTime != nil{
  104. aCoder.encode(changePasswordTime, forKey: "changePasswordTime")
  105. }
  106. if controllerList != nil{
  107. aCoder.encode(controllerList, forKey: "controllerList")
  108. }
  109. if createTime != nil{
  110. aCoder.encode(createTime, forKey: "createTime")
  111. }
  112. if distinguishedName != nil{
  113. aCoder.encode(distinguishedName, forKey: "distinguishedName")
  114. }
  115. if employee != nil{
  116. aCoder.encode(employee, forKey: "employee")
  117. }
  118. if genderType != nil{
  119. aCoder.encode(genderType, forKey: "genderType")
  120. }
  121. if icon != nil{
  122. aCoder.encode(icon, forKey: "icon")
  123. }
  124. if id != nil{
  125. aCoder.encode(id, forKey: "id")
  126. }
  127. if lastLoginAddress != nil{
  128. aCoder.encode(lastLoginAddress, forKey: "lastLoginAddress")
  129. }
  130. if lastLoginClient != nil{
  131. aCoder.encode(lastLoginClient, forKey: "lastLoginClient")
  132. }
  133. if lastLoginTime != nil{
  134. aCoder.encode(lastLoginTime, forKey: "lastLoginTime")
  135. }
  136. if mail != nil{
  137. aCoder.encode(mail, forKey: "mail")
  138. }
  139. if mobile != nil{
  140. aCoder.encode(mobile, forKey: "mobile")
  141. }
  142. if name != nil{
  143. aCoder.encode(name, forKey: "name")
  144. }
  145. if pinyin != nil{
  146. aCoder.encode(pinyin, forKey: "pinyin")
  147. }
  148. if pinyinInitial != nil{
  149. aCoder.encode(pinyinInitial, forKey: "pinyinInitial")
  150. }
  151. if qq != nil{
  152. aCoder.encode(qq, forKey: "qq")
  153. }
  154. if roleList != nil{
  155. aCoder.encode(roleList, forKey: "roleList")
  156. }
  157. if token != nil{
  158. aCoder.encode(token, forKey: "token")
  159. }
  160. if tokenType != nil{
  161. aCoder.encode(tokenType, forKey: "tokenType")
  162. }
  163. if unique != nil{
  164. aCoder.encode(unique, forKey: "unique")
  165. }
  166. if updateTime != nil{
  167. aCoder.encode(updateTime, forKey: "updateTime")
  168. }
  169. if weixin != nil{
  170. aCoder.encode(weixin, forKey: "weixin")
  171. }
  172. }
  173. }