12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- //
- // CommunityRecommendMusicListModel.swift
- // RainbowPlanet
- //
- // Created by Christopher on 2019/7/17.
- // Copyright © 2019 RainbowPlanet. All rights reserved.
- //
- import Foundation
- import ObjectMapper
- // 推荐&&分类のModelList
- class CommunityRecommendMusicListModel : NSObject, Mappable{
-
- var data : [CommunityMusicItemModel]?
- var pagination : PaginationModel?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return CommunityRecommendMusicListModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- data <- map["data"]
- pagination <- map["pagination"]
-
- }
-
- }
- // 歌曲Model
- class CommunityMusicItemModel : NSObject, Mappable{
-
- var id : Int?
- var img : String?
- var musicDuration : Int?
- var name : String?
- var singer : String?
- var url : String?
-
-
- class func newInstance(map: Map) -> Mappable?{
- return CommunityMusicItemModel()
- }
- required init?(map: Map){}
- private override init(){}
-
- func mapping(map: Map)
- {
- id <- map["id"]
- img <- map["img"]
- musicDuration <- map["music_duration"]
- name <- map["name"]
- singer <- map["singer"]
- url <- map["url"]
-
- }
-
- }
|