// // SlotDepriveCommand.swift // KCD // // Created by Hori,Masaki on 2017/01/09. // Copyright © 2017年 Hori,Masaki. All rights reserved. // import Cocoa final class SlotDepriveCommand: JSONCommand { override class func canExecuteAPI(_ api: API) -> Bool { return api.endpoint == .slotDeprive } override func execute() { ShipMapper(apiResponse).commit() // 2種類のデータが来るため ShipMapper(forSlotDepriveUnset: apiResponse).commit() } }