123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- //
- // HotpicPlayerEntity.swift
- // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
- import Foundation
- import ObjectMapper
- class HotpicPlayerEntity : NSObject, NSCoding, Mappable{
- var application : String?
- var createTime : String?
- var creator : String?
- var distributeFactor : Int?
- var id : String?
- var infoId : String?
- var picUrl : String?
- var sequence : String?
- var title : String?
- var updateTime : String?
- var url : String?
- class func newInstance(map: Map) -> Mappable?{
- return HotpicPlayerEntity()
- }
- required init?(map: Map){}
- private override init(){}
- func mapping(map: Map)
- {
- application <- map["application"]
- createTime <- map["createTime"]
- creator <- map["creator"]
- distributeFactor <- map["distributeFactor"]
- id <- map["id"]
- infoId <- map["infoId"]
- picUrl <- map["picUrl"]
- sequence <- map["sequence"]
- title <- map["title"]
- updateTime <- map["updateTime"]
- url <- map["url"]
-
- }
- /**
- * NSCoding required initializer.
- * Fills the data from the passed decoder
- */
- @objc required init(coder aDecoder: NSCoder)
- {
- application = aDecoder.decodeObject(forKey: "application") as? String
- createTime = aDecoder.decodeObject(forKey: "createTime") as? String
- creator = aDecoder.decodeObject(forKey: "creator") as? String
- distributeFactor = aDecoder.decodeObject(forKey: "distributeFactor") as? Int
- id = aDecoder.decodeObject(forKey: "id") as? String
- infoId = aDecoder.decodeObject(forKey: "infoId") as? String
- picUrl = aDecoder.decodeObject(forKey: "picUrl") as? String
- sequence = aDecoder.decodeObject(forKey: "sequence") as? String
- title = aDecoder.decodeObject(forKey: "title") as? String
- updateTime = aDecoder.decodeObject(forKey: "updateTime") as? String
- url = aDecoder.decodeObject(forKey: "url") as? String
- }
- /**
- * NSCoding required method.
- * Encodes mode properties into the decoder
- */
- @objc func encode(with aCoder: NSCoder)
- {
- if application != nil{
- aCoder.encode(application, forKey: "application")
- }
- if createTime != nil{
- aCoder.encode(createTime, forKey: "createTime")
- }
- if creator != nil{
- aCoder.encode(creator, forKey: "creator")
- }
- if distributeFactor != nil{
- aCoder.encode(distributeFactor, forKey: "distributeFactor")
- }
- if id != nil{
- aCoder.encode(id, forKey: "id")
- }
- if infoId != nil{
- aCoder.encode(infoId, forKey: "infoId")
- }
- if picUrl != nil{
- aCoder.encode(picUrl, forKey: "picUrl")
- }
- if sequence != nil{
- aCoder.encode(sequence, forKey: "sequence")
- }
- if title != nil{
- aCoder.encode(title, forKey: "title")
- }
- if updateTime != nil{
- aCoder.encode(updateTime, forKey: "updateTime")
- }
- if url != nil{
- aCoder.encode(url, forKey: "url")
- }
- }
- }
|