123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- //
- // CommunityVideoListModel.swift
- // RainbowPlanet
- //
- // Created by Christopher on 2019/7/3.
- // Copyright © 2019 RainbowPlanet. All rights reserved.
- // 视频播放列表のModel
- import Foundation
- import ObjectMapper
- class CommunityVideoListModel : NSObject, Mappable{
-
- var data : [CommunityVideoItemModel]?
- var pagination : PaginationModel?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return CommunityVideoListModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- data <- map["data"]
- pagination <- map["pagination"]
-
- }
-
- }
- class CommunityVideoItemModel : NSObject, Mappable{
-
- var avatar : String?
- var collectCount : Int?
- var commentCount : Int?
- var content : String?
- var descUrl : String?
- var h5url : String?
- var id : Int?
- var img : String?
- var isCollect : Int?
- var isFollow : Int?
- var isLike : Int?
- var praiseCount : Int?
- var title : String?
- var topic : [CommunityVideoTopicModel]?
- var type : String?
- var uid : Int?
- var username : String?
- var video : String?
- var willCollectBean : Int?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return CommunityVideoItemModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- avatar <- map["avatar"]
- collectCount <- map["collect_count"]
- commentCount <- map["comment_count"]
- content <- map["content"]
- descUrl <- map["desc_url"]
- h5url <- map["h5url"]
- id <- map["id"]
- img <- map["img"]
- isCollect <- map["is_collect"]
- isFollow <- map["is_follow"]
- isLike <- map["is_like"]
- praiseCount <- map["praise_count"]
- title <- map["title"]
- topic <- map["topic"]
- type <- map["type"]
- uid <- map["uid"]
- username <- map["username"]
- video <- map["video"]
- willCollectBean <- map["will_collect_bean"]
-
- }
-
- }
- class CommunityVideoTopicModel : NSObject, Mappable{
-
- var id : Int?
- var name : String?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return CommunityVideoTopicModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- id <- map["id"]
- name <- map["name"]
-
- }
-
- }
|