CMS_PublishInfo.swift 5.5 KB

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