//
//  WSFramesProducerLinesView.swift
//  iPOS
//
//  Created by bbc on 23/11/2017.
//  Copyright © 2017 BBC. All rights reserved.
//

import Foundation
import ObjectMapper

class WSFramesProducerLinesView:Mappable, INameable {
    var parentId: Int!
    var keyId: Int!
    var name: String?
    var customName: String { return self.name! }
    var customSubtitle: String? { return nil }
    
    func mapping(map: Map) {
        parentId <- map["ParentId"]
        keyId <- map["KeyId"]
        name <- map["Name"]
    }
    
    required init?(map: Map) {
    }
    
    init() {
    }
}

class  WSFramesProducerLinesViewResponse: Mappable{
    var odataMetadata: String?
    var value: [WSFramesProducerLinesView]?
    
    required init?(map: Map){
        
    }
    
    func mapping(map: Map) {
        odataMetadata <- map["odata.metadata"]
        value <- map["value"]
    }
}
