//
//  DefaultResponse.swift
//  iPOS
//
//  Created by Zoran Albu on 12/18/17.
//  Copyright © 2017 BBC. All rights reserved.
//

import Foundation
import ObjectMapper

class DefaultResponse: Mappable {
    var resultCode: Int?
    var resultMessage: String?
    
    init() {
    }
    
    required init?(map: Map){
    }
    
    func mapping(map: Map) {
        resultCode <- map["ResultCode"]
        resultMessage <- map["ResultMessage"]
    }
}

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

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