CommunityMemberFollowTopicListModel.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // CommunityMemberFollowTopicListModel.swift
  3. // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
  4. import Foundation
  5. import ObjectMapper
  6. class CommunityMemberFollowTopicListModel : NSObject, Mappable{
  7. var data : [CommunityMemberFollowTopicListDataModel]?
  8. var pagination : PaginationModel?
  9. class func newInstance(map: Map) -> Mappable?{
  10. return CommunityMemberFollowTopicListModel()
  11. }
  12. required init?(map: Map){}
  13. private override init(){}
  14. func mapping(map: Map)
  15. {
  16. data <- map["data"]
  17. pagination <- map["pagination"]
  18. }
  19. }
  20. class CommunityMemberFollowTopicListDataModel : NSObject, Mappable{
  21. var id : Int?
  22. var isSuggest : Int?
  23. var topicId : Int?
  24. var topicName : String?
  25. var uid : Int?
  26. var isFollow : Int = 1
  27. class func newInstance(map: Map) -> Mappable?{
  28. return CommunityMemberFollowTopicListDataModel()
  29. }
  30. required init?(map: Map){}
  31. private override init(){}
  32. func mapping(map: Map)
  33. {
  34. id <- map["id"]
  35. isSuggest <- map["is_suggest"]
  36. topicId <- map["topic_id"]
  37. topicName <- map["topic_name"]
  38. uid <- map["uid"]
  39. }
  40. }