OSDN Git Service

Doutakuを導入
[kcd/KCD.git] / KCD / ShipDeckCommand.swift
1 //
2 //  ShipDeckCommand.swift
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2017/01/09.
6 //  Copyright © 2017年 Hori,Masaki. All rights reserved.
7 //
8
9 import Cocoa
10
11 final class ShipDeckCommand: JSONCommand {
12     
13     override class func canExecuteAPI(_ api: API) -> Bool {
14         
15         return api.endpoint == .shipDeck
16     }
17     
18     override func execute() {
19         
20         ShipMapper(apiResponse).commit()
21         DeckMapper(apiResponse).commit()
22         DummyShipCommand(apiResponse: apiResponse).execute()
23         DropShipHistoryCommand(apiResponse: apiResponse).execute()
24     }
25 }