123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- //
- // CommunityPostCommentsModel.swift
- // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
- import Foundation
- import ObjectMapper
- class CommunityPostCommentsModel : NSObject, Mappable{
- var data : [CommunityPostCommentModel]?
- var pagination : PaginationModel?
- var commentCount : Int?
- class func newInstance(map: Map) -> Mappable?{
- return CommunityPostCommentsModel()
- }
- required init?(map: Map){}
- private override init(){}
- func mapping(map: Map)
- {
- data <- map["data"]
- pagination <- map["pagination"]
- commentCount <- map["comment_count"]
- }
- }
- class CommunityPostCommentModel : NSObject, Mappable{
-
- var avatar : String?
- var content : String?
- var createdAt : String?
- var id : Int?
- var reply : [CommunityPostReplyModel]?
- var replyCount : Int?
- var uid : Int?
- var username : String?
- var height : CGFloat?
- var isDelete : Int?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return CommunityPostCommentModel()
- }
- required init?(map: Map){}
- override init(){}
-
- func mapping(map: Map)
- {
- avatar <- map["avatar"]
- content <- map["content"]
- createdAt <- map["created_at"]
- id <- map["id"]
- reply <- map["reply"]
- replyCount <- map["reply_count"]
- uid <- map["uid"]
- username <- map["username"]
- isDelete <- map["is_delete"]
-
- }
- }
- class CommunityPostReplyModel : NSObject, Mappable{
-
- var avatar : String?
- var content : String?
- var createdAt : String?
- var replyUsername : String?
- var uid : Int?
- var username : String?
- var id : Int?
- var height : CGFloat?
- var isDelete : Int?
-
- class func newInstance(map: Map) -> Mappable?{
- return CommunityPostReplyModel()
- }
- required init?(map: Map){}
- override init(){}
-
- func mapping(map: Map)
- {
- id <- map["id"]
- avatar <- map["avatar"]
- content <- map["content"]
- createdAt <- map["created_at"]
- replyUsername <- map["reply_username"]
- uid <- map["uid"]
- username <- map["username"]
- isDelete <- map["is_delete"]
-
- }
-
- }
|