O2TaskAttachmentInfoData.swift 5.2 KB

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